I have a Kendo UI grid that is rendered with javaScript. I want the string columns to have a single option (“Contains”) and without the second filter. So far so good, I wrote
$("#MyGrid").kendoGrid({ // other bits of configuration here filterable: { extra:false, operators: { string:{ contains: "Contains"} } }, // more bits of configuration here });
As part of the definition of the grid. And the result looks good-ish (I only have one option, so the drop down is redundant).
However, regardless of this, the filter still performs the equals operation rather than the contains operation (which is the only one available to it).
I’ve spent a while trying to figure this out and I keep going around in circles because the code I found either does not work, or doesn’t make sense, or both.
Can anyone tell me how to default the filter to “Contains” and not “Is Equal To”?
Advertisement
Answer
Try to update to latest internal build. Version later than 2012.3.1304 should contain the fix.