最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Lazy load values in paginated datatable using jquery - Stack Overflow

programmeradmin4浏览0评论

I'm trying to use the jquery datatable plugin in my project. It supports ajax loading of values in the table. But my question is does it support lazy loading of value? means If the table is paginated, can I load data required by each page using ajax when it is requested than load all the values at the startup of the page?

Now what I observed is that all data required by the page is loaded when the table is created. It will create problem if the page has to deal with a huge amount of data and it is not used at that point of time.

If this plugin cannot handle it can anyone suggest any other plugin which will support this requirement. I need a data table which supports pagination and lazy loading of contents.

I'm trying to use the jquery datatable plugin in my project. It supports ajax loading of values in the table. But my question is does it support lazy loading of value? means If the table is paginated, can I load data required by each page using ajax when it is requested than load all the values at the startup of the page?

Now what I observed is that all data required by the page is loaded when the table is created. It will create problem if the page has to deal with a huge amount of data and it is not used at that point of time.

If this plugin cannot handle it can anyone suggest any other plugin which will support this requirement. I need a data table which supports pagination and lazy loading of contents.

Share Improve this question edited Dec 15, 2010 at 11:37 Arun P Johny asked Aug 8, 2009 at 16:45 Arun P JohnyArun P Johny 388k68 gold badges531 silver badges532 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 2

This can be done using the ajax configuration in the datatable itself. You can find the details here. The option sAjaxSource is used to specify the ajax source and setting the option bProcessing allows us to configure the system to do all the processing like page loading, sorting and filtering in the server side.

发布评论

评论列表(0)

  1. 暂无评论