Hi, I'm trying to change whether a column is read-only based on a code event - but column remains editable. Here is my code: dataSource.options.schema.model.fields.date.editable = (status === "Paid");
I did this in the end by creating two columns, and forking the incoming dataset field during dataSource.parse(). One column is readOnly while the other is editable.
Does anyone form Telerik have a neater way of doing this - my code attempts have not worked thus far.
Thanks,
Jack
0
Iliana Dyankova
Telerik team
answered on 24 Apr 2013, 11:20 AM
Hi Jack,
I am afraid changing the columns' editability is not supported in Kendo UI Grid. As a possible workaround you could use the Grid's edit event and close the currently edited cell (depending on your conditions) using the closeCell() method.
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!