Refresh filters
Refresh filters

Hi im loading a lot of data so i've implemented a cache with IndexedDB so the loading is instant except for the first load then i got a function that do the api call, get the data then add/delete/update the row and the cache. To add a newRow to my dataTable i use .rows.add(toAdd).draw();
And it works great the row is added but the row is not added to the columns filter generated by dataTables.net and the row is not added to the search too. The only way i found is to force to show all the data then the filters and search works as expected, is there a way to "refresh" the filters and search ?
Replies
The process you are using should allow the default search input to work. There are many column search solutions available. Please provide more details of what you have. A test cade showing the issues would be best.
Kecin
Okay so ive created a over simplified version :
Looks like you are using a custom function build column select options. This is not built into datatables. However you can implement something like this thread shows:
https://datatables.net/forums/discussion/comment/232914/#Comment_232914
If that doesn’t help then search the forum for “buildselect” and you will find other examples.
Kevin