Hello,
I'm using textfields to perform filtering among columns like in this example. I added on the top of the table a checkbox which, when checked, should only display lines where the column named "ms" is not empty. I do a simple table.column("ms:name").search("^\s*$", true).draw();
when the checkbox is checked and a table.column("ms:name").search("").draw();
when unchecked.
BUT now, I remark that :
1) i check the checkbox and the correct lines are shown in the table
2) I write something in the textbox of a column to filter the displayed results ; It works...
3) I remove what I wrote in this textbox and I see that ALL lines appears, even those who don't match "^\s*$" criteria : the checkbox is now forgotten !
And now I understand that the search criteria first written in the column textfields are also forgotten when, after, I check the checkbox since checking this checkbox does not ADD a search criteria but DEFINES (and overwrites) existing search criteria.
How can I do to ensure that the criteria set by the checkbox is always filtering the table until the checkbox is unchecked ??
Is there a way to ADD/REMOVE search criteria to those who already exists ?
Thanks for your help !
t.