I've setup a ExtJS Grid, while using the Paging开发者_StackOverflowToolbar (with PagingMemoryProxy on an ArrayStore).
I have removed items from the store of the grid, but the PagingToolbar will not show that the items have been removed.
Any suggestions on how to do this?
Try unbinding and rebinding the store when you modify the items.
myGrid.store.on('remove', function() {
var pager = myGrid.getBottomToolbar();
if (pager) {
pager.unbind(myGrid.store);
pager.bind(myGrid.store);
}
});
精彩评论