How to filter a checkbox column by checkbox state?

How to filter a checkbox column by checkbox state?

henno.taht@gmail.comhenno.taht@gmail.com Posts: 2Questions: 1Answers: 0

The user wants to have filter options for each column. The table has multiple columns where only a checkbox exists in the cell.

When the user chooses "Selected" option here:

he wants the table to only show the rows which have checked checkbox in that column. He also wants to be able to apply multiple filters together.

So far it's working as requested but there is this issue: when the user changes the state of the checkboxes, DataTables appears to be unaware of the change and continues to filter as the checkbox was never modified. Reloading the page fixes this but I need to somehow inform DataTables that data has changed, so that the filters would filter correctly even when the data has changed but the page has not yet been reloaded.

The code:

This is how I'm trying to tell DataTables that DOM has changed (but that's not working):

Answers

This discussion has been closed.