Locally paging on Extjs 5 store of type ajax

*爱你&永不变心* 提交于 2019-12-06 01:47:28

Paging of already loaded data is achieved with Ext.data.proxy.Memory configured with enablePaging: true. So what you need is to use two stores:

  1. "Remote" store to merely load data from the server side;
  2. Local paging store configured with memory proxy. The data will be loaded from the remote store once it loads itself:
pagingStore.getProxy().setData(remoteStore.getRange());
pagingStore.load();

Full working example: https://fiddle.sencha.com/#fiddle/pim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!