Dear all
I have a RadGrid contains 3 columns as below:
2 of them are read only and user can only edit in column3.
I get the edited item as below:
But I can't get the value of the first column , the "ID" ?!!!!
I tried the solution in this post:
http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-readonly-hidden-fields-in-edit-mode-radgrid.aspx
but it generate error about ParentItem !
Could any one help me in that issue ??
Regards
I have a RadGrid contains 3 columns as below:
<telerik:GridBoundColumn DataField="ID" HeaderText="ID" ReadOnly="True" UniqueName="column1"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Seller" HeaderText="Seller" ReadOnly="True" UniqueName="column2"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" UniqueName="column3"> </telerik:GridBoundColumn>2 of them are read only and user can only edit in column3.
I get the edited item as below:
But I can't get the value of the first column , the "ID" ?!!!!
protected void grdSellers_ItemCommand(object source, GridCommandEventArgs e) { switch (e.CommandName) { case "Update": GridEditableItem editedItem = e.Item as GridEditableItem; TableCell cell = editedItem["column3"]; string itemValue = (cell.Controls[0] as TextBox).Text; //Get Id of editable item ?? } }I tried the solution in this post:
http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-readonly-hidden-fields-in-edit-mode-radgrid.aspx
but it generate error about ParentItem !
Could any one help me in that issue ??
Regards