Forum /
Sencha Touch 2.x Forums /
Sencha Touch 2.x: Discussion /
Ext.data.Store #setPage
Ext.data.Store #setPage
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.
Thanks,
RS
Sencha - Senior Forum Manager
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?
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.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us