Yadcf exFilterColumn how to load the value from LocalStorage?

Yadcf exFilterColumn how to load the value from LocalStorage?

lenamtllenamtl Posts: 265Questions: 65Answers: 1
edited November 2017 in Free community support

Hi, I'm having this case

I'm saving the LocalStorage value for the tables.

I'm using Yadcf for my filters.

I have set a filter value by default using exFilterColumn
It save the value correctly in LocalStorage
The problem I'm having is it is not Loading the value from LocalStorage

So let say the user select Inactive into the filter
When the page reload the exFilterColumn default value is back again, it is NOT LOADING the new value of the filter FROM LocalStorage.

So is there a way to ** Load the new value** of exFilterColumn from LocalStorage ?
This should follow the same rules....

Or is there another way to achieve this using Yadcf?

This is to show active only by default (active/inactive)

yadcf.exFilterColumn(table18, [
    [2, "Active"]
]);

Datatables oSearch work the way I need (with a default value and load from loacalstorage) but it is for all columns not for a specific column so that won't work for my needs
https://legacy.datatables.net/ref#oSearch
"oSearch": {"sSearch": "Active"},

This discussion has been closed.