Please ensure the parameters are passed correctly as per the documentation API.
Substitute mode and values by user entered values.
grid.filter({
rules: [
{
dataIndx: 'dataIndx of field',
mode: 'OR',
crules: [
{ condition: 'contain', value: a },
{ condition: 'contain', value: b }
]
}
]
});