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"
})
]
});