I have a kendo grid in which i have filtering enabled. I have a check box,and when i uncheck it,i want the filtering to be disabled. And similarly,when i check it i want to enable it. How can i achieve it?
3 Answers, 1 is accepted
answered on 11 Apr 2012, 09:16 AM
Disabling the filter functionality at runtime is not currently supported. As a workaround you could prevent the click on the filter icons by covering them with transparent <div> elements.
In this jsFiddle you can see the aforementioned approach in action.
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Unfortunately the provided solution works only in case grid is static, columns cannot be resized, or moved. It is possible to break the example simply by resizing jsFiddle previewPane after checking the checkbox.
Maybe there is some better solution now (your answer is quite old already)?
answered on 17 Aug 2015, 08:38 AM
There are two alternative ways to achieve the desired behavior:
1) use setOptions() to re-create the Grid with the appropriate filterable settings.