Filtering -- How to: Help with custom filter??
Filtering -- How to: Help with custom filter??
Hello
I have two issues. My column may contain "Yes" or "No" or "Maybe", plus any combination of the three separated by commas "Yes, Maybe" etc..
The values I want in the filter drop down would be just "Yes", "No" or "Maybe", not any combination which can be in the column.
So how do I override the building of the column filter drop down values?
Plus when selecting one of the filters: "Yes", I would like would like to match on whether the value is in the column even when the column contains "Yes, Maybe" or "Yes".
I tried $.fn.dataTableExt.afnFiltering.push, but this occurs after the columns have been filtered.
Any help, newbie struggles.
Thanks
I have two issues. My column may contain "Yes" or "No" or "Maybe", plus any combination of the three separated by commas "Yes, Maybe" etc..
The values I want in the filter drop down would be just "Yes", "No" or "Maybe", not any combination which can be in the column.
So how do I override the building of the column filter drop down values?
Plus when selecting one of the filters: "Yes", I would like would like to match on whether the value is in the column even when the column contains "Yes, Maybe" or "Yes".
I tried $.fn.dataTableExt.afnFiltering.push, but this occurs after the columns have been filtered.
Any help, newbie struggles.
Thanks
This discussion has been closed.
Replies
Possibly a daft question, but what build in column filter drop downs? DataTables doesn't have that ability built in! So the answer will be in whatever plug-in or script you are using to generate the select menus. How are you currently doing it?
Allan