How to Disable filter icon on kendo react grid on condition

1 Answer 376 Views
Grid
Arun
Top achievements
Rank 1
Iron
Arun asked on 27 May 2022, 09:50 AM

Hi ,

I want to disable filter icon in the grid while new blank  row is added and it should be enable  once user entered the value and save. can you please help.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 31 May 2022, 06:57 AM

Hello Arun,

Even though the Grid does not provide a built-in option for disabling the filtering while editing an item, you can manually get reference to the header element of the Grid and disable all child elements and also, disable the "pointer-events" for it. I have prepared a simple example demonstrating such implementation:

As you will notice, on "add" and "enterEdit" I am calling a "toggleDisabledState" function that finds the header element and manually disables everything within. On "update" I am removing the disabled state.

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Arun
Top achievements
Rank 1
Iron
commented on 16 Sep 2022, 06:08 AM

Thank you it helps
Tags
Grid
Asked by
Arun
Top achievements
Rank 1
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or