Results 1 to 4 of 4

Thread: Resetting PagingToolbar to empty!

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    0
      0  

    Default Resetting PagingToolbar to empty!

    Hi All,

    My requirement is as follows.

    I have 2 tabs with grids. There is some data in the 1st tab's grid. When I move to the second tab I am saying "myItemsStore.removeAll();". When I come back to the first tab, my grid is empty only but the PagingToolbar is not reset. It is still saying as Displaying 1-20 of 20 records. Also, if I click on the Refresh icon that is present in the PagingToolbar all the data is again getting loaded which is no the expected behavior.

    Here is the part of the code snippet.

    myItemsGrid = new Ext.grid.GridPanel({
    id:'ItemsGridId' + tabIndex,
    store: myItemsStore,
    columns : columns,
    bbar: [new Ext.PagingToolbar({
    pageSize: itemsPageBulk,
    id:'ItemsGridPager' + tabIndex,
    store: myItemsStore,
    displayInfo: true,
    displayMsg: 'Displaying records {0} - {1} of {2}',
    emptyMsg: "No records to display"
    })
    ]
    });

    ---
    ---
    myItemsStore.setBaseParams = null;
    myItemsStore.removeAll();

    =============
    Any help in this regard is highly appreciated.

    Thank you.
    Ramanujam.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    What Ext JS 4 version are you using?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    0
      0  

    Default

    ExtJS3.0 is what we are using for our development.

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    Moved to the correct forum then.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •