generating pagination, but only show 10 records server side question
generating pagination, but only show 10 records server side question

I want the data tables to be generated through ajax request calls. Right now I have it setup with the ajax config. I thought I was going to then be able to click on the pagination next button, or have some way to generate a pagination range, but I am having some difficulty finding the information.
So if on initial load it is showing say record 0 to 10, but I want to have a pagination with all the record ids in 10 record increments. Is this not possible?
If I have 50,000 records I want to display, but obviously I can't send those all to the browser and have datatables manage such a large dataset? This would take forever to load.
How do people handle this?
Thanks
This question has an accepted answers - jump to answer
Answers
Hi @Goddard ,
I don't follow, but it sounds like you may be describing server side processing. For server side processing, enable
serverSide
. The protocol is discussed here.Cheers,
Colin
example here: https://datatables.net/examples/server_side/simple.html
Found the answer right after I asked the question.
iTotalRecords
iTotalDisplayRecords
Just for future reference where is this in the documentation?
Server Side Processing documentation is here:
https://datatables.net/manual/server-side
Kevin
hmm, but I do not see the two options I listed above in this page. Is this undocumented?
Oh I see, it is the legacy documentation that i need to reference.