kalyani14591 / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Implementing reg-ex filters with type: "select" #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Trying to use a regular expression with a 'select' filter. Something like the 
following:

var valueList = [];
valueList.push({ value: '^foobar$', label: 'foobar'});
oTable.columnFilter( {
    "sPlaceHolder": "head:after",
    "aoColumns":  [
        {
            type: "select",
            values: valueList,
            bRegex: true
        }]});

When I select "foobar" from my table, nothing is matched because the datatable 
fnFilter did not have "true" specificed for the third parameter.

I was using the latest trunk (r57, 1.4.1).

Fixing this was pretty simple. I've attached a patch which solves the problem.

Original issue reported on code.google.com by a.c.car...@gmail.com on 22 Dec 2011 at 11:40

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by joc...@gmail.com on 12 Feb 2012 at 1:10

GoogleCodeExporter commented 9 years ago
Hi,

I have added regex support for the select list. You solution was in minor 
collision with other issue so I have to modify code.

You can see how it works on 
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/regex.html

Thanks,
Jovan

Original comment by joc...@gmail.com on 12 Feb 2012 at 9:19