What is the equivalent paging memory proxy method in Ext JS 4.2

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.

+4
source share
1 answer

Have you been looking for Ext.ux.data.PagingMemoryProxy ?

From Sencha docs:

A paging memory proxy server that allows you to use the paging grid in the memory dataset.

0
source

All Articles