1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    206
    Vote Rating
    1
    randomuser01 is on a distinguished road

      0  

    Default GroupingStore and PagingToolbar

    I have a PagingToolbar and GroupingStore bound to a GridPanel.

    If I have 3 groups with 2 items in each group, the pagingBar displays "Displaying row 1 - 6 of 3".

    Any ideas how I can fix it to display the number of groups instead? I'm paginating data server side based on the number of groups displayed on a page so that all related rows appear on the same page.

    Thanks

    Code:
        var gridStore = new Ext.data.GroupingStore({
            url: '/CommandHandler.aspx?MessageType=GetHistory',
            reader: jsonReader,
            sortInfo: {field:'ServerID', direction:'ASC'},
            remoteSort: false,
            remoteGroup: true,
            groupField: 'GroupingCol',
            groupOnSort: false
        });
    
        gridStore.load({params:{start:0, limit:ITEMS_TO_DISPLAY}});
        
        var pagingBar =  new Ext.PagingToolbar({
            pageSize: ITEMS_TO_DISPLAY,
            store: gridStore,
            displayInfo: true,
            displayMsg: 'Displaying rows {0} - {1} of {2}',
            emptyMsg: 'No rows to display'
            });

  2. #2
    Sencha User
    Join Date
    Apr 2014
    Posts
    1
    Vote Rating
    0
    solarkid is on a distinguished road

      0  

    Default

    I am facing exactly the same issue. Any solution?

Thread Participants: 1