The extended operators can be made to filter multiple values in the rows.
$.extend($.fn.datagrid.defaults.operators, {
mcontains:{
text:'Contains',
isMatch:function(source,value){
const vv = value.split(',').filter(r=>r);
for(let i=0; i<vv.length; i++){
const v = vv[i];
if (source.indexOf(v) >= 0){
return true;
}
}
return false;
}
}
})
This new operator can be applied to a filter input.
$('#dg').datagrid('enableFilter', [
{
field:'Users',
type:'textbox',
op:['equal','mcontains']
},
...