row().invalidate().draw() after data-filter change doesn't work both ways?
row().invalidate().draw() after data-filter change doesn't work both ways?
soorr
Posts: 4Questions: 2Answers: 0
I have a function that updates the data-filter attribute of a td element that holds a dropdown button. The button only has an icon on it so I had to find a way to change the filter for the search to work.
Anyway, when I run $('#example').dataTable().api().rows().invalidate().draw(); I am able to search for the newly updated data-filter but for some reason I can also still search for the old data-filter and get a result, which shouldn't happen.
Any ideas?
This discussion has been closed.
Answers
Can you link to the page showing the issue, per the forum rules, so it can be debugged please.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan