How can I see more results per page than 10 without pagination?
How can I see more results per page than 10 without pagination?
konndziu
Posts: 2Questions: 1Answers: 0
Hello, I would like the table to display more than 10 results on one page. I am using an external system that was created based on DataTables, which does not display a drop-down list with the selection of the number of results per page. So, where should I change the value from 10 to e.g. 100 to see 100 results per page? Thank you for your answers!
This discussion has been closed.
Answers
You can do it at initialisation with
pageLength
, or later with the API withpage.len()
.Colin
Thank you Colin, but im totally green, in which file i can do this initialisation?
The JavaScript file where you're initialising DataTables with
DataTable()
. If it's external, but you have a say, it would be best to contact the administrator and ask them. Otherwise, pull up the browser's console and try somethlng like$('table').DataTable().page.len(100);
- that might do the trick.Colin