禁用 kendo-ui 网格多列过滤

disable kendo-ui grid multi column filtering

如何禁用kendo-ui网格多列过滤? 我需要在使用列过滤时清除其他列过滤值,并且只能使用单列过滤(不是组合过滤器)?

试试这个:

var datasource = $("#grid").kendoGrid({
    columns: [{}],
    filterable : true,
    filterMenuInit: function(e) {
        $("form.k-filter-menu button[type='reset']").trigger("click");
    },
    dataSource: {
        data: [{}]
    }
});

NOTE: after some research i noticed that this is a common issue in the kendo community as well as is one of the most wanted feature to bind the filter menu event, but still there is no valid fix. so, i decided to hack the source code a little bit (just few lines of code), this task has been quite annoying since the kendo source is only available in compressed/obfuscated format for non licensed copy, BTW, you can see the result on the demo page and look into the source code. source on github for direct cdn file inclusion hope this help someone...