Change default value of iDisplayLength?
Change default value of iDisplayLength?
alhenderson
Posts: 9Questions: 0Answers: 0
Morning All,
I have a datatable where I initialise 'iDisplayLength' to -1 (to show all rows). When I then choose to show pages, the table then shows 9 rows. I am using sDOM to make my table a fixed min height but 9 rows does not fill this. Can I somehow change that '9' that datatables decides to use when switched to pages mode?
Thanks,
Al.
I have a datatable where I initialise 'iDisplayLength' to -1 (to show all rows). When I then choose to show pages, the table then shows 9 rows. I am using sDOM to make my table a fixed min height but 9 rows does not fill this. Can I somehow change that '9' that datatables decides to use when switched to pages mode?
Thanks,
Al.
This discussion has been closed.
Replies
Makes perfect sense now I think about it, its only when I came to try and write my own change handler for the length change drop down that I realised this!
Cheers,
Al.