fnfilter regex limit
fnfilter regex limit
aliB
Posts: 6Questions: 0Answers: 0
Hi
I created a multi select drop down with checkboxes for several columns in my table, when an option is check or uncheck i am calling this function
$('.multi-select', this).change( function () {
if($(this).val() === null){ // if the user has unchecked all options
oTable.fnFilter( "", $(this).parent().index());
}
else{
oTable.fnFilter( $(this).val().toString().replace(',','|'), $(this).parent().index(),true,false);
}
});
this is working fine if the user selects only two options, when a 3rd option is selected the table just shows results of the last one checked.
"option1|option2|option3"
is there a limit on number of ORs for the fnFilter ?
Thanks !
I created a multi select drop down with checkboxes for several columns in my table, when an option is check or uncheck i am calling this function
$('.multi-select', this).change( function () {
if($(this).val() === null){ // if the user has unchecked all options
oTable.fnFilter( "", $(this).parent().index());
}
else{
oTable.fnFilter( $(this).val().toString().replace(',','|'), $(this).parent().index(),true,false);
}
});
this is working fine if the user selects only two options, when a 3rd option is selected the table just shows results of the last one checked.
"option1|option2|option3"
is there a limit on number of ORs for the fnFilter ?
Thanks !
This discussion has been closed.
Replies