Saving/persisting custom filter

Saving/persisting custom filter

KA2012KA2012 Posts: 16Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hello,

I've spent quite a few days trying to figure this out. I'm working with the Column-Filter plugin, and am trying to get the range-filter to persist with bStateSave. The text and select filters seem to all persist since they end up being saved in aoPreSearchCols[i].sSearch (I was able to tweak the checkbox filter to make it work like that too). However, since the Range Filter doesn't actually call oTable.fnFilter, I suspect this is why sSearch doesn't get the "From/To" values. How can we save this filter so it it comes back upon reload? It seems both the actual input strings and the actual data-filter don't get saved. I thought of adding my own custom array[index, min, max] to oTable.fnSettings() to keep track of the values, but this seems complicated. Is there a way I'm missing?
This discussion has been closed.