4
votes

In version 3.x of Ext JS, I have a store with a json proxy to fetch the complete data set from the server, then I use that store as a reader in a store with a PagingMemoryProxy with the original store as the reader to provide paged data for a grid panel.

The 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 the paged 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
});

Would someone be able to tell me how to the equivalent of this in ExtJS 4?

Thanks.

1
I'm looking for the same thing. Were you able to get this to work ?Lorenz Meyer

1 Answers

0
votes

Were you looking for Ext.ux.data.PagingMemoryProxy?

From the Sencha docs:

Paging Memory Proxy, allows to use paging grid with in memory dataset.