"stateSave" also when updating tables
"stateSave" also when updating tables
Is it possible to also save the pagination state when updating a table?
I use .clear() -> .row.add() -> .draw() to update my tables. And I would very much like for the pagination to be stored after doing this. It seems like just setting stateSave: true won't do this. I can see it saves the state in the Local Storage but it still refreshes to the first page.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
draw( false )to retain the paging location. Seedraw()for all options available to thedraw()method.Allan