admin管理员组文章数量:1440487
I need to disable the Kendo
filter option on particular column on click of a button
. I gave a shot as mentioned in link Grid Custom Filter for Columns Not In Grid but it throws error since filterable is not defined. Please help.
function ButtonClick() {
var TestGridDetails = $("#TestGrid").data("kendoGrid");
TestGridDetails.columns[6].filterable(false);
}
I need to disable the Kendo
filter option on particular column on click of a button
. I gave a shot as mentioned in link Grid Custom Filter for Columns Not In Grid but it throws error since filterable is not defined. Please help.
function ButtonClick() {
var TestGridDetails = $("#TestGrid").data("kendoGrid");
TestGridDetails.columns[6].filterable(false);
}
Share
Improve this question
edited May 23, 2017 at 12:08
CommunityBot
11 silver badge
asked Nov 28, 2014 at 9:09
InterstellarInterstellar
6742 gold badges13 silver badges30 bronze badges
1 Answer
Reset to default 3It seems you can't just change one column value; you can change options globally with the setOptions method but you need to define all of the columns' details.
function ButtonClick() {
var TestGridDetails = $("#TestGrid").data("kendoGrid"),
columnsConfig = TestGridDetails.options.columns;
columnsConfig[6].filterable = false;
TestGridDetails.setOptions({columns: columnsConfig});
}
本文标签: javascriptDisable kendogrid filter on particular columnStack Overflow
版权声明:本文标题:javascript - Disable kendogrid filter on particular column - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745646262a2668155.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论