lengthMenu not working with displayLength

lengthMenu not working with displayLength

CoderStefCoderStef Posts: 2Questions: 1Answers: 0

Hello,
Using this Options :
"lengthMenu": [[10, 20, 25, 50, -1], [10, 20, 25, 50, "All"]],
"displayLength": 20,

When i change the page the datatables display all row, but i need 20 from the displayLength Options.
Any Idea why this not working on the first page change?

This question has an accepted answers - jump to answer

Answers

  • hhmhhm Posts: 24Questions: 3Answers: 2
    Answer ✓

    In 1.10 it is pageLength:

    'pageLength': 10,
    'lengthMenu': [[10, 20, 25, 50, -1], [10, 20, 25, 50, 'All']],
    

    pageLength

  • CoderStefCoderStef Posts: 2Questions: 1Answers: 0

    thx.
    this is the solution :)

This discussion has been closed.