Hi,
this is my code and i want old value along with new value to update record,i am done with new value but not getting idea @ old value
Thanks.
this is my code and i want old value along with new value to update record,i am done with new value but not getting idea @ old value
<
telerik:RadGrid
ID
=
"RadGridTaskActivity"
runat
=
"server"
OnNeedDataSource
=
"RadGridTaskActivity_NeedDataSource"
onupdatecommand
=
"RadGridTaskActivity_UpdateCommand"
>
<
MasterTableView
EditMode
=
"EditForms"
AutoGenerateColumns
=
"true"
CommandItemDisplay
=
"Top"
CommandItemSettings-ShowAddNewRecordButton
=
"true"
>
<
EditFormSettings
FormMainTableStyle-HorizontalAlign
=
"Center"
EditColumn-ButtonType
=
"PushButton"
InsertCaption
=
"Add New Activity"
>
<
FormStyle
Width
=
"100%"
BackColor
=
"LightCyan"
></
FormStyle
>
</
EditFormSettings
>
<
Columns
>
<
telerik:GridEditCommandColumn
HeaderStyle-Width
=
"80px"
ButtonType
=
"ImageButton"
UniqueName
=
"EditColumn"
HeaderText
=
"Edit"
>
</
telerik:GridEditCommandColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
protected void RadGridTaskActivity_UpdateCommand(object sender, GridCommandEventArgs e)
{
GridEditableItem EditItem = e.Item as GridEditableItem;
RadTextBox txtTestName = (RadTextBox)EditItem["ActiVityName"].FindControl("txtTestName");
Hashtable newValues = new Hashtable();
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, EditItem);
string NewActivityName = newValues["ActivityName"].ToString();
//I WANT OLD ACTIVITY NAME ALSO WHICH I CAN SEE IN "GridEditableItem"
}
Thanks.