Change datatables rowcount directly

Change datatables rowcount directly

tomsonkatomsonka Posts: 2Questions: 1Answers: 0
edited October 2016 in Free community support

I have more page where i using datatables. I want to do, if the user change in one page the rowcount, this may change every page. The pagelenght and iDisplayLength not solve the problem. Thanks a lot.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,819Questions: 1Answers: 10,517 Site admin
    Answer ✓

    You would need to save the user applied page length (which you can know when the user changes it from length) in a localStorage variable and then apply that when you initialise your next DataTable.

    Allan

  • tomsonkatomsonka Posts: 2Questions: 1Answers: 0

    Thank you

This discussion has been closed.