GridColumnProps has an editable prop which accepts boolean values only. Is it possible to conditionally set the editability of a column based on values in other columns?
Kind regards,
David
2 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 04 Mar 2021, 02:22 PM
Hello, David,
The editable prop can be set to a function to change it dynamically.
For example, you can keep the edited records inside the state, and use them in the function:
Another option is to use the cell prop of the column where the developer has full control over what to render. This has the entire row information available, and the developer can decide to render the editor or the value:
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/.