Manually change datatable length not working

Manually change datatable length not working

irxn84irxn84 Posts: 12Questions: 5Answers: 0

Hi,

I want to manually change the actually displayed length. Background: The user can change some settings and when the user changes his settings, I want to change the length of the datatable manually.

This is what I tried:
datatable.length = 50;
datatable.state.save();
datatable.draw();

But nothing happens. What am I doing wrong?

Best regards,
Peter

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 22,498Questions: 26Answers: 5,170
    Answer ✓

    You would use the page.len() API to change the page length.

    Kevin

  • irxn84irxn84 Posts: 12Questions: 5Answers: 0

    Thank you very much. This is the function I was looking for.

This discussion has been closed.