fnfilter regex limit
fnfilter regex limit
![aliB](https://secure.gravatar.com/avatar/0971a7969b1d83790760820d786c09c9/?default=https%3A%2F%2Fvanillicon.com%2F0971a7969b1d83790760820d786c09c9_200.png&rating=g&size=120)
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