Manually change datatable length not working
Manually change datatable length not working
irxn84
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
This discussion has been closed.
Answers
You would use the
page.len()
API to change the page length.Kevin
Thank you very much. This is the function I was looking for.