Dynamically disable pagination
Dynamically disable pagination

How to dynamically disable pagination?
For example, click on the button to turn off pagination.
I tried to do this, but it didn't work.
{
text: 'Disable Pagination',
className: 'qs-button',
action: function () {
table.paging(false).draw();
}
}
Replies
Use
page.len()
and set it to -1 to disable paging. If you then also want to remove the paging control from the page (it would just say 1 page), you could use a little Javascript to adddisplay: none
to it.Allan