On an ExtJS grid, you can use reconfigure to programmatically change the store of the grid. Is there an equivalent for the paging toolbar?
I’ve looked through the ExtJS docs several times for the paging toolbar and there doesn’t seem to be a reconfigure or a setStore function, and there isn’t even a store property to set.
This is ExtJS 4 by the way.
Ext.toolbar.Paginghas mixinExt.util.Bindable. So, you just can to callbindStoremethod, and ExtJS 4.1 will do all other work itself. For example, I’ve edited paging.js in examples/grid folder, and add to grid following toolbar:It’s all you need to do. You can see online demo here.