Column Filter plugin select box with regex problem
Column Filter plugin select box with regex problem
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?
[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?
This discussion has been closed.
Replies
You live, you learn, I guess.
Anyway, it works now, so I'm happy!