关于 Extjs Grid 和预加载?
我有大量数据,为了显示它,我使用启用了分页的网格, 并加载第一页数据。
我如何在后台加载下一页数据? 这样当用户单击“下一步”按钮时,我将显示预加载的数据。
任何解决办法。
提前致谢, 克柴图
I am having huge data, to display this I am using grid with paging enabled,
and loading the first page 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的解决方案可能是将整组数据加载到商店并使用分页工具栏进行过滤,但是您提到的数据量“巨大” - 这可能会使解决方案无效......
或者
准备好 3 组数据(之前 - 开始时为空,实际和之后)并覆盖 onload 事件:
请记住,Ajax 请求是异步的,单击可能比加载更快,这应该在逻辑上进行预测...但这只是一个想法
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:
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