According to the documentation t^20 will search for a substring only
at the beginning of a string.
For completeness specifying t$20 for substring searches at the end
of a string is also supported.
queryHash['f['+colnum+'][len]']=c.filterValues.length;
for (var i=0; i<c.filterValues.length; i++) {
var fval=c.filterValues[i];
- if (c.filterOp=='LIKE' && fval.indexOf('*')==-1) fval='*'+fval+'*';
+ if (c.filterOp=='LIKE' && fval.indexOf('*')==-1) {
+ if (c.format.filterUI.charAt(1) == '^') fval=fval+'*';
+ else if (c.format.filterUI.charAt(1) == '$') fval='*'+fval;
+ else fval='*'+fval+'*';
+ }
queryHash['f['+colnum+']['+i+']']=fval;
}
}