State saving and individual column filters
State saving and individual column filters
zepp
Posts: 1Questions: 0Answers: 0
Based on the Example:
http://datatables.net/examples/api/multi_filter.html
and enabling State Saving using:
"bStateSave": true
I have noticed that the state on individual column filters is not saved between reloads/ refreshes.
I have searched and read countless examples (most of which are old or outdated) and was wondering if the current example could be extended to included State Saving.
Many thanks, Zepp
This discussion has been closed.
Replies
You can use my yadcf plugin for datatables, among others of its features it support "bStateSave": true for all of its 8 (and counting) filter types,
take a look:
http://yadcf-showcase.appspot.com/DOM_source_chosen.html
or this one (note that the below example is for the new datatable API)
http://yadcf-showcase.appspot.com/DOM_Ajax_Multiple_1.10.html
Here is a fairly trivial modification that uses the
state.loaded()
method to populate the search boxes with the state saved information: http://live.datatables.net/neqozaj/1/edit .Also, @daniel_r's YADCF is great :-)
Allan