Filtering -- How to: Help with custom filter??

Filtering -- How to: Help with custom filter??

wglide85wglide85 Posts: 2Questions: 0Answers: 0
edited April 2012 in General
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

Replies

  • wglide85wglide85 Posts: 2Questions: 0Answers: 0
    I am open to suggestions. Any help would be appreciated.
  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    > So how do I override the building of the column filter drop down values?

    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
This discussion has been closed.