StateSave not restoring filter drop down selections on return to page
StateSave not restoring filter drop down selections on return to page
https://debug.datatables.net/uwijiq
I have applied stateSave : true to my table, and it works brilliantly. If I apply a filter using the search box, when I return to the page the text I enter in the search box is restored and the page is filtered accordingly. However if I filter using a filter drop down list added to the footer of the table and move away and return, the filter then says "All", however the original filter is still applied. If I then try and change it to "All" from "All" nothing happens. To see all rows again I have to select another value and then select "All" to see the complete table again. I have enclosed the link to the debug information.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Restoring the values of column search drop down lists is something you will need to do. See if this thread gets you started.
Kevin
Thanks I tried the solution posted, however upon testing the stateLoadParams code triggers before the InitComplete code which is where the drop downs are populated.
Here is my code
Hi @georgeforster ,
You can access the last state loaded inside
initCompletewithstate.loaded()- so you can move your code into that function cleanly.Cheers,
Colin