Default table length with pagination on

Default table length with pagination on

ContraContra Posts: 2Questions: 0Answers: 0
edited December 2011 in General
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]

Replies

  • MadmartiganMadmartigan Posts: 1Questions: 0Answers: 0
    I just found DataTables and had the exact same issue, even using the same length options.

    Solution: [code]"iDisplayLength": -1[/code]

    http://datatables.net/ref#iDisplayLength
  • ContraContra Posts: 2Questions: 0Answers: 0
    Works for me. Thanks!
This discussion has been closed.