does fnFilter cache the filter?
does fnFilter cache the filter?
hey out there. I using fnFilter. The selectedValue below is a dropdown option. So user chooses different value and the filter "was" working. I started experimenting with different filters which didn't work. Reverted back to the below code and now it never works. My screen says "0 of 0 display of 10,000" so I know its the filter doing this. There are 8 columns in this table and the row 4 os the one I want to filter on, Is there some sort of cache refresh/redraw I need to do every time? This was working great earlier.
var selectedValue = document.getElementById("feedType").value;
$(dataTableId).dataTable().fnFilter(selectedValue , 4, true, false, false, false);
Answers
The values that are being used for the search are cached by DataTables - yes. You can use
rows().invalidate()
if you want to invalidate the current data and have DataTables refresh its internal cache.Beyond that, a link to the page in question so we can take a look and debug it would be useful.
Allan