How can I access the value of a READONLY control in a RadGrid?
I tried the code below but it could not find the control.
RadGrid1.items.FindControl("controlename")
However, when I remove the READONLY property, I am able to find the control.
I will appreciate any help asap.
Thanks
Jeff
2 Answers, 1 is accepted
0
Tsvetoslav
Telerik team
answered on 29 Nov 2010, 06:15 PM
Hello Jeffrey,
As far as I understand you need to get the value of the read-only control when an item is put into edit mode. In this case, you can use either of the following approaches:
1. Add the name of the column's DataField to the DataKeyNames of the MasterTableView and then call the GetDataKeyValue method of the grid's edit form item: