javascript - disable kendo-ui grid multi column filtering -


how disable kendo-ui grid multi column filtering? need clear other column filter value when filtering column, , filtering possible single column(not combination filter)?

try this:

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

note: after research noticed common issue in kendo community 1 of wanted feature bind filter menu event, still there no valid fix. so, decided hack source code little bit (just few lines of code), task has been quite annoying since kendo source available in compressed/obfuscated format non licensed copy, btw, can see result on demo page , source code. source on github direct cdn file inclusion hope someone...


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -