Anyway to set the ReadOnly attribute of the EditColumnSetting during the InitializeRow event for a specific cell?
Hello,
No, currently the read only attribute can be set on the column level. You can customize it on a cell level by using client side events, handle "EnteringEditMode" & cancel the event for celsl you don't want your users to edit.
-Taz.
Hi Taz,
How? can you point me out?
Hi
How to get the checkbox field value in this event, it is not firing for this inside this event.
Please do the needful.
Hello Nanguyen,
The following code snippet will not allow edit in any Cells using the WebDataGrid EnteringEditMode client-side event where the cell's value is equal to "Harry":
function wDG1_EnteringEditMode(sender, e) { var grid = $find("wDG1"); var cellValue = grid.get_behaviors().get_activation().get_activeCell().get_value(); if (cellValue == "Harry") { e.set_cancel(true); } }
Please let me know if this code sample helps. If you have any questions, let me know and I will be happy to assist you further.Thank you.Sincerely,Mike D.Developer Support EngineerInfragistics, Inc.