Problem with "Individual column filtering" and "State saving with localStorage"

Problem with "Individual column filtering" and "State saving with localStorage"

cquadjulcquadjul Posts: 1Questions: 0Answers: 0
edited November 2013 in General
Hi,

First, congratulation, your solution is great!

But, I have a little problem :
- I made my datatable => Ok
- I insert "Individual column filtering (using "input" elements)" => OK
- I insert "State saving with localStorage" => ok

But, if I use filter, the text in my input element filter is not re-written. So, the filter is active, but we can't see where?

I have the same probleme with the "Individual column filtering (using "select" elements)"

How can I debug this?

Thank you for your answer

Julien

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    DataTables doesn't have built-in individual column filtering - you use the API to create the filters. As such, it doesn't know anything about the inputs being used for the column filters, so it can't restore their state. You need to use the fnStateLoadParams callback to repopulate the custom column filters.

    Allan
This discussion has been closed.