Manually change datatable length not working
Manually change datatable length not working
![irxn84](https://secure.gravatar.com/avatar/e9faee1c104e35dc86f18378c5a19070/?default=https%3A%2F%2Fvanillicon.com%2Fe9faee1c104e35dc86f18378c5a19070_200.png&rating=g&size=120)
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.