How to set the default page length when first viewed?

How to set the default page length when first viewed?

jstemperjstemper 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

Answers

This discussion has been closed.