Programmatic length change without loading the datatable
Programmatic length change without loading the datatable

Intially my length is 10 and when i click all button, i need to change the length to -1 (all) and check all checkboxes. Is there anyway we can change the length and loading the page. Datatable takes 15 secs to load for only 14 records.
This discussion has been closed.
Answers
The
page.len()
API is used to change the page length. There is an example of what you are asking for in the docs.Which checkboxes are you wanting to check. Are they select extension checkboxes, checkboxes in the table rows or checkboxes outside the table?
Could be lots of things. Without seeing it its are to say. Could be a delay in receiving the data from the server. You would need to narrow down where the issue is. Are you using ajax to retrieve the data, etc.
Kevin
Yes I am using ajax to retrieve. Do you want me to post my code