开发者

extJS 4. pagination question

Is it possible to load all data recors to the store but display only one page in the grid? I mean, using pagination I can load only one set of data at once and to show next page in the gri开发者_如何学编程d I have to load next set of data. I would like to load all data from the server but display only part of it.


use Ext.ux.data.PagingMemoryProxy in ext/examples/ux/data/PagingMemoryProxy.js


I haven't tested this myself, so I'm not sure if it'll work, but you could try setting the following config values for your store:

buffered: true,
purgePageCount: 0//never purge the cache

Also, you MAY need to set clearOnPageLoad to false.

Also, the store has the following methods: prefetch() and prefetchPage().


By default all data will load to Store. And if you are using pagingtoolbar in the grid, it works as you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜