Reputation: 205
I have a Hierarchical Kendo grid, and on some condition I need to disable it, i.e disable the expand/collapse functionality, sorting, column reorder, column resizing, Any workaround for same?
Upvotes: 3
Views: 6499
Reputation: 336
please add 'k-state-disabled' class for disabled thing in kendo. so find element which you want to disable and add this class..
or
prevent event like this for the same...
$("#grid").find(".k-grid-header .k-link,.k-grid-pager .k-link").click(function(e) {
e.stopPropagation();
});
if you like my answer then don't forget to vote me..
Upvotes: 4