开发者

regarding Extjs Grid and preloading?

I am having huge data, to display this I am using grid with paging enabled, and loading the first page 开发者_Python百科data.

How i can load the next page data in the back ground ?? so that when the user clicks next button I will show the data which is preloaded.

Any work around.

Thanks in advance, kkchaitu


The simpliest solution could be a loading whole set of data to the store and use Paginating Toolbar for filtering purpose, however you refering that amount of data is "huge" - this could make solution uneffective...

or

Have 3 set of data ready (before - empty at start, actual, and after) and overwrite onload events:

  • after loading - display and load next, (or previous),
  • before load check is next (or previous) is avaible - use it, change what is prevoius, actual, next, prepare what should be loaded after (in background)

keep in mind that Ajax requests are asinchronic and clicking could be faster than loading and this should be predicted in logic... However this is just an idea

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜