Pagination
Pagination
icey502
Posts: 1Questions: 0Answers: 0
Hi there,
I have a Java spring-based back end and I am trying to rig up a datatables 1.9.x front using one of the alternative pagination approaches.
I have an initial version without any paging, in which the back end is returning JSON and I am stuffing the JSON manually into an aaData object on the browser side. After looking through the examples and source, I am still wondering how to go about creating the pagination hooks in a rest-ful way (e.g. "http://myserver/page/1/pagesize/50" meaning page 1 with a page size of 50 records). Is there a callback somewhere that will provide this hook, and how do I grab the existing parameters of the datatable to do it? If this seems too broad of a question, just a pointer in the right direction would be helpful.
Thanks and best regards,
icey502
I have a Java spring-based back end and I am trying to rig up a datatables 1.9.x front using one of the alternative pagination approaches.
I have an initial version without any paging, in which the back end is returning JSON and I am stuffing the JSON manually into an aaData object on the browser side. After looking through the examples and source, I am still wondering how to go about creating the pagination hooks in a rest-ful way (e.g. "http://myserver/page/1/pagesize/50" meaning page 1 with a page size of 50 records). Is there a callback somewhere that will provide this hook, and how do I grab the existing parameters of the datatable to do it? If this seems too broad of a question, just a pointer in the right direction would be helpful.
Thanks and best regards,
icey502
This discussion has been closed.
Replies
Allan