"stateSave" also when updating tables

"stateSave" also when updating tables

RuudscornerRuudscorner Posts: 2Questions: 2Answers: 0

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

Answers

  • allanallan Posts: 63,893Questions: 1Answers: 10,531 Site admin
    Answer ✓

    Use draw( false ) to retain the paging location. See draw() for all options available to the draw() method.

    Allan

This discussion has been closed.