View Full Version : Ext.data.Store #setPage

13 Nov 2012, 12:44 PM
A #setPage method would be useful for stores as an alternative to #loadPage where you may not want to actually send a request.

This is relevant for re-using components where new data is loaded. Yea, you can do something like:

store.load({ ... page: 1, start: 0, ... });

but the store will end up setting the page to wherever it was previously when internal paging mechanisms are used.


15 Nov 2012, 6:14 AM
I'm not sure what you mean by a setPage method. You just want to set the page on the store and not load anything?

15 Nov 2012, 9:19 AM
Correct. If I set the page in the params and reload the list with some different data, then when the ListPaging plugins takes back over, the list ends up on the wrong (probably cached page) if it had been paged previously.