fnFilter string not shown when bStateSave activated

fnFilter string not shown when bStateSave activated

bozdenbozden Posts: 10Questions: 0Answers: 0
edited November 2013 in DataTables 1.9
Hi Allan,

I have bStateSave set to true and I use fnFilter like in the examples. When I input some string into "tfoot input" it is correctly filtered.

On the other hand if I move to another table (in my package I have multiple DT's) and then return back (or just refresh the current table) the filter continues to be effective. On the other hand the input boxes do not show the filter string. This is really confusing for the user.

Any way to correct this behavior?

Thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    So its the custom filtering elements in the footer that aren't being repopulated? DataTables doesn't know anything about those inputs, so it can't repopulate them. You'd need to use fnStateLoadParams to get the state information and populate your inputs.

    Allan
This discussion has been closed.