Length Menu default

Length Menu default

benDevbenDev Posts: 6Questions: 0Answers: 0
edited February 2012 in General
Hi Allan,
i tried using the aLengthMenu:
"aLengthMenu": [[-1, 25, 50, 100], ["All", 25, 50, 100]],
however when the page is loaded i can only see 10 records out of the total list...?
if i switch to another option and go back to All i can see all of them. however on the page startup there is a deafult 10 ?
(using datatables ver 1.9)
Thanks,
B

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    If you want to change the default page length you need to use the iDisplayLength option. Just set it to -1 if you want all records by default.

    Allan
This discussion has been closed.