In version 3.x of Ext JS, I have a repository with a json proxy to get a complete set of data from the server, then I use this store as a reader in a store with PagingMemoryProxy with the original storage as a reader to provide paged data for the grid panel.
Json store: -
var fleetReader = new Ext.data.JsonReader({ root:'results', successProperty:'success', totalProperty:'total', idProperty:'vid' }, fleetRec ); var fleetDs = new Ext.data.Store({ proxy: new Ext.data.ScriptTagProxy({ url: 'request/getfleet', timeout: 10000 }), reader:fleetReader });
Then I create a page version of this store as follows: -
fleetPagedDs = new Ext.data.Store({ proxy: new Ext.ux.data.PagingMemoryProxy(fleetDs.reader.jsonData), reader: fleetDs.reader, remoteSort: true });
Can anyone tell me how this is equivalent to this in ExtJS 4?
Thanks.
source share