Column Filter plugin select box with regex problem

Column Filter plugin select box with regex problem

MattiMatti Posts: 2Questions: 0Answers: 0
edited March 2013 in Plug-ins
I'm trying to use the Column Filter plugin to filter a column of percentages by regex, but the select box says 'object Object' for all the choices and it doesn't filter. Here's my code:

[code].columnFilter({
sPlaceHolder: "head:after",
aoColumns: [
null,
null,
null,
{ type: "select", bRegex:true, values: [
{ value: '^4[0-3]', label: '40% - 43%'},
{ value: '^4[4-6]', label: '44% - 46%'},
{ value: '^4[7-9]|50', label: '47% - 50%'}
]},
null
]
});[/code]

Any idea what the issue could be?

Replies

  • MattiMatti Posts: 2Questions: 0Answers: 0
    edited March 2013
    Found the issue: I had an older version of the plugin (0.9). I pulled that off what seems like the correct googlecode repository (https://code.google.com/p/jquery-datatables-column-filter/), but it turns out that what I downloaded is just the example pack and that it uses a far older version.

    You live, you learn, I guess.

    Anyway, it works now, so I'm happy!
This discussion has been closed.