How to set the default page length when first viewed?
How to set the default page length when first viewed?
jstemper
Posts: 15Questions: 10Answers: 0
I have lengthMenu set to 10,25,50 and want the datatable to default to 25 records but on first visit it always defaults to 10. Is there a way to set the default? I've tried "pageLength":25 but not sure that that is working.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Built this example and it seems to work with both
lengthMenu
andpageLength
configured as you described:http://live.datatables.net/cayufako/1/edit
Maybe you can post your Datatables init code or update the example with your code?
Kevin