Hi,
In the radgrid, i am using editmode = inplace.
sample aspx for edititemtemplate is:
In the updateCommand code i have the below:
The bolded line has newvalues as empty. i have changed few columns. How to retrieve the updated items?
Thanks
In the radgrid, i am using editmode = inplace.
sample aspx for edititemtemplate is:
<
EditItemTemplate
>
<
telerik:RadTextBox
ID
=
"RadtxtPrdNumber"
runat
=
"server"
Text='<%# Eval("ProductNumber") %>'>
</
telerik:RadTextBox
>
</
EditItemTemplate
>
In the updateCommand code i have the below:
GridEditableItem editedItem = (GridEditableItem)e.Item;
string
value = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex][
"ProductNumber"
].ToString();
DataTable ordersTable =
this
.OrderGridData;
//Locate the changed row in the DataSource
string
filter =
"ProductNumber = '"
+ value +
"'"
;
DataRow[] changedRows = ordersTable.Select(filter);
Hashtable newValues =
new
Hashtable();
//The GridTableView will fill the values from all editable columns in the hash
// in the below code newvalues is coming as empty
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
DataRow changedRow = changedRows[0];
changedRow.BeginEdit();
The bolded line has newvalues as empty. i have changed few columns. How to retrieve the updated items?
Thanks