row().invalidate().draw() after data-filter change doesn't work both ways?

row().invalidate().draw() after data-filter change doesn't work both ways?

soorrsoorr 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?

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    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

This discussion has been closed.