How can I achieve server side pagination using data table? Currently, on load of page I am initializing the data table & filling the table with Data (JSON) coming from database via Java Spring controller. I am making an Ajax call by passing search criteria in query string. Since we have hundreds of thousands of records, we have planned for server side pagination to improve performance.
For this the backend service developer has given me a service that gives me the per page records but takes inputs like PAGE NUMBER, NO OF PAGE RECORDS, SORT ORDER, SORT COLUMN.
I have to override data table implementation to pass these to service via Ajax request query string. I don't know if there is a way to achieve this.
For more info check out the documentation
I would advise you to take a look at the docs again.
those are the ones you are after I suppose.
KEEP IN MIND:
and you want to take a look at the properties yourself, in order not to make this post too long.
Ready to use code : just use as per requirement