简体   繁体   中英

Server side pagination in jquery datatable with client side sorting and filtering

Datatables requirements, is it possible?

Example Scenario:

1. Server returns 10 rows at a time.
2. Pagination is to be used
3. Going back to a previous rendered page does not reload the data from the server
4. Sorting should be configurable enough to work on the already loaded data only and do not query the server for it
5. Filtering should be configurable to work on client side data or query the server for it.

Is this set of requirements possible with jquery Datatables?

OK, the answer is this: if you use server-process to get data then when you do the sort, pagination and filter, it will always get data from server side, you have no chance to do it just in client side. When I used it first time, I had the same requirement, but finally I gave it up. in brief, if you choose server side, it will take care all of things with server side data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM