How can I see more results per page than 10 without pagination?

How can I see more results per page than 10 without pagination?

konndziukonndziu 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!

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599
    edited January 2021

    You can do it at initialisation with pageLength, or later with the API with page.len().

    Colin

  • konndziukonndziu Posts: 2Questions: 1Answers: 0

    Thank you Colin, but im totally green, in which file i can do this initialisation?

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    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

This discussion has been closed.