Default table length with pagination on
Default table length with pagination on
Is there a way to have the table length default to "all" with pagination enabled?
I tried setting the first item in aLengthMenu but it stays at 10.
[code]"aLengthMenu": [[-1, 25, 50, 100], ["All", 25, 50, 100]][/code]
I tried setting the first item in aLengthMenu but it stays at 10.
[code]"aLengthMenu": [[-1, 25, 50, 100], ["All", 25, 50, 100]][/code]
This discussion has been closed.
Replies
Solution: [code]"iDisplayLength": -1[/code]
http://datatables.net/ref#iDisplayLength