View Full Version : Resetting PagingToolbar to empty!

8 Oct 2012, 3:56 AM
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;

Any help in this regard is highly appreciated.

Thank you.

10 Oct 2012, 9:29 AM
What Ext JS 4 version are you using?

15 Oct 2012, 1:01 AM
ExtJS3.0 is what we are using for our development.

15 Oct 2012, 3:51 AM
Moved to the correct forum then.