Programmatic length change without loading the datatable

Programmatic length change without loading the datatable

SweetAnonymousSweetAnonymous Posts: 18Questions: 1Answers: 0

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.

Answers

  • kthorngrenkthorngren Posts: 20,142Questions: 26Answers: 4,736

    Is there anyway we can change the length and loading the page.

    The page.len() API is used to change the page length. There is an example of what you are asking for in the docs.

    check all checkboxes.

    Which checkboxes are you wanting to check. Are they select extension checkboxes, checkboxes in the table rows or checkboxes outside the table?

    Datatable takes 15 secs to load for only 14 records.

    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

  • SweetAnonymousSweetAnonymous Posts: 18Questions: 1Answers: 0

    Yes I am using ajax to retrieve. Do you want me to post my code

This discussion has been closed.