State restoring
State restoring
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
I've made it up by adding:
var start = state.start;
table.page(start / table.page.info().length).draw(false);
You can close this thread