inFilter exact match + fnGetColumnData

inFilter exact match + fnGetColumnData

danielfaulknordanielfaulknor Posts: 3Questions: 0Answers: 0
edited September 2010 in General
Hi

Thanks for such an awesome piece of code.

I'm encountering this problem at the moment with the use of the individual column filtering here: http://www.datatables.net/examples/api/multi_filter_select.html

I have a column of data which is made up of statuses, "Active" and "Inactive".
The drop-down menu renders just fine, however when I go to select "Active", it still shows rows which are "Inactive", possibly because it is not doing an exact match on the rows within that column.
Choosing "Inactive" just yields those rows which have an actual "Inactive" value.

How do I get it inFilter to _exactly_ match what's selected in the drop down?

I have had a look at the code, and in particular:
[code] oTable.fnFilter( $(this).val(), i );[/code] and played around with the options around this but to no avail.

I have a feeling this may have something to do with regex and I've tried setting these to true/false but it doesn't seem to work. All aoColumns are set to null - should this matter?

Thanks in advance :)

Replies

  • danielfaulknordanielfaulknor Posts: 3Questions: 0Answers: 0
    Woops.

    This has already been answered here: http://datatables.net/forums/comments.php?DiscussionID=1354&page=1#Item_0

    Please excuse my stupidity!
This discussion has been closed.