Display 100 rows by default?
Display 100 rows by default?
LauraSuzy
Posts: 12Questions: 4Answers: 1
I'd like to keep the option to show 10 rows at a time and use pagination, but I'd like the page to default to displaying 100 rows. How can I do that?
Also, my current implementation isn't showing the "showing 10 rows of 90" text below the table. I'd actually like to see that above the table, where the drop down is to change how many rows are displayed.
Thanks!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
pageLength
.Use the
dom
option.Allan
Thank you! I am using the dom option, and I can see that it has put the information above and below my table in the HTML when I view the element with Firebug, but for some reason the .dataTables_info class in the CSS is set to display:none. Any idea why that might be the case?
I would need a link to the page to be able to debug that. I don't think that is something that DataTables itself would do.
Allan