Server side pagination without the total records count
Server side pagination without the total records count
![Pato120](https://secure.gravatar.com/avatar/6ef5e33a4dce9c6ad42db1309f093001/?default=https%3A%2F%2Fvanillicon.com%2F6ef5e33a4dce9c6ad42db1309f093001_200.png&rating=g&size=120)
I have a very large amount of data on the server and DB query takes a long time to be resolved.
I tried a new approach to resolve this, but for this, I need to limit the number of page skips the user can do.
I also can not find the total records count.
I are trying to implement something like this:
When I click on the 7th page I get the 5 previous page number and the 5 next ones in the pagination buttons.
Any suggestion would really help.
Thanks
This discussion has been closed.
Answers
Hi @Pato120 ,
A few things there.
You can get the total record count with
api page.info()
.There's a few default paging types, see
pagingType
. You can also create your own if those don't meet your needs, there's a few here that you could use as a template.Cheers,
Colin