You can override or extend the operators when filtering data, the code below shows how to extend a new operator.
$.extend($.fn.datagrid.defaults.operators, {
greater: {
text: 'Greater',
isMatch: function(source, value){
return source > value;
}
},
ngreater: {
text: 'Greater',
isMatch: function(source, value){
return (parseFloat(source)||0) > (parseFloat(value)||0);
}
}
})
You also can apply the new operator on the filtering menu.
op:['equal','notequal','less','ngreater']