Getting applied column filter values on reload when using saveState
Getting applied column filter values on reload when using saveState
Link to test case:
http://jsfiddle.net/Cyberjetx/6as7o4gb/2/
Error messages shown:
None.
Description of problem:
When setting the column filter: dtable.column(idx).search(val, true, false).draw();
and the table has stateSave: true
the search setting remains intact on the next load as expected. But I would like to set the visual indicator in my dropdown to checked if it is set. I believe it is in the .column object but I have not been able to identify where.
I believe that it would be easy to and it could be done as I build the column search.
I hope I have been clear enough.
This question has an accepted answers - jump to answer
Answers
See if this thread helps.
Kevin
YES! It is the state object that has everything!! Thanks so much!
I will use
var state = dtable.state.loaded();
state.columns[idx].search.search;
in the build column search func. This is what I was looking for!