State restoring

State restoring

JohnBeaJohnBea Posts: 11Questions: 2Answers: 1
edited August 2016 in Free community support

Hello,
I have datatable with state saving and individual column search. Like in this example code: https://jsfiddle.net/r4wornfa/1/ To set back (after page reload) searched in colum value, I need to do state restore to get back entered in filter value. This works fine, but when i added the restore state piece of code, paging state is lost. Just go to example above, and change page, than reload fiddle. Does anyone know why this paging is lost ?

This question has an accepted answers - jump to answer

Answers

  • JohnBeaJohnBea Posts: 11Questions: 2Answers: 1
    edited August 2016 Answer ✓

    I've made it up by adding:
    var start = state.start; table.page(start / table.page.info().length).draw(false);

  • JohnBeaJohnBea Posts: 11Questions: 2Answers: 1
    edited August 2016

    You can close this thread

This discussion has been closed.