I have developed these for my use. Sharing it Just in case somebody needs it:
$.extend($.fn.datagrid.defaults.operators, {
startsWith: {
text: 'Starts With',
isMatch: function(source, value){
source = String(source);
value = String(value);
return source.toLowerCase().indexOf(value.toLowerCase()) == 0;
}
}
});
$.extend($.fn.datagrid.defaults.operators, {
endsWith: {
text: 'Ends With',
isMatch: function(source, value){
source = String(source);
value = String(value);
return source.indexOf(value, source.length - value.length) !== -1;
}
}
});