我有一个用javaScript渲染的Kendo UI网格.我希望字符串列有一个选项("包含")而没有第二个过滤器.到目前为止,这么好,我写道
$("#MyGrid").kendoGrid({
// other bits of configuration here
filterable: {
extra:false,
operators: {
string:{ contains: "Contains"}
}
},
// more bits of configuration here
});
Run Code Online (Sandbox Code Playgroud)
作为网格定义的一部分.结果看起来很好(我只有一个选项,所以下拉是多余的).

但是,无论如何,过滤器仍然执行equals操作而不是contains操作(这是唯一可用的操作).
我花了一段时间试图解决这个问题,并且我一直在圈子里走,因为我发现的代码要么不起作用,要么没有意义,或者两者兼而有之.
任何人都可以告诉我如何将过滤器默认为"包含"而不是"等于"?