The stateSave
in jQuery DataTables is not working when loading data table for the first time, it loads filter data of previous state. It works fine after first load.
For example- If I have performed filter search and logout & login again in the application or update the cache and load this data table again then filter value of previous search will be visible and if there was nothing in previous search then value of filter will be blank. And next search onwards the filter works fine.
jQuery('#tableName').dataTable( {
"Destroy": true,
"Paginate": true,
"StateSave": true,
"StateDuration": 0.1
});