'jQuery Paginator when total number of rows are not available
I have a requirement in which I need to implement a paginator using jQuery.
But the problem is, the table which I need to display in datatable is huge(hundreds of thousands of records). Therefore can't hit the DB to get the total number of rows.
What I need is, a paginator with 4 buttons, First, Previous, Next and Last. At a time, a fixed number of records should be fetched. When clicked on next, it should fetch next set of records from server. If no records are available, then empty data table will also work for me.
Solution 1:[1]
I have done same kind of requirement using jPaginator http://remylab.github.io/jpaginator/ in which I triggered the method to fetch next set of results on clicking next button. Hope it helps
Solution 2:[2]
An old question, I know, but I think you can use anyPaginator in your situation: https://github.com/arnemorken/anypaginator
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Khaleel |
| Solution 2 | Arne M |
