This question is locked. New answers and comments are not allowed.
I have a key field called Name which I do want to be displayed in the Grid, and also when editing a record, but I don't want it to be editable in the Edit form.
So I defined that column as follows in my Telerik MVC3 project's view page:
columns.Bound(o => o.Name).Width(100).ReadOnly(true); // make the key column read only
This works fine if the GridEditMode is set to InLine, but not otherwise. If GridEditMode is set to InForm or PopUp, the field is fully editable for both server or client side binding, i.e. the ReadOnly property of the column only appears to work for GridEditMode = InLine.
Am I right in thinking this is a bug? Is there a workaround? I like the PopUp mode best, because it prevents users from clicking Edit or Delete links on other records before they have finished dealing with the current record that they are editing, but it is a nuisance that the ReadOnly property is being ignored.
Thanks
So I defined that column as follows in my Telerik MVC3 project's view page:
columns.Bound(o => o.Name).Width(100).ReadOnly(true); // make the key column read only
This works fine if the GridEditMode is set to InLine, but not otherwise. If GridEditMode is set to InForm or PopUp, the field is fully editable for both server or client side binding, i.e. the ReadOnly property of the column only appears to work for GridEditMode = InLine.
Am I right in thinking this is a bug? Is there a workaround? I like the PopUp mode best, because it prevents users from clicking Edit or Delete links on other records before they have finished dealing with the current record that they are editing, but it is a nuisance that the ReadOnly property is being ignored.
Thanks