Hi,
I have a radgrid holding customer notes with a column called UserUpdated. The UserUpdated column is the last user to have updated the note in the row. It is a template column like this:
When the person hits the edit button on that row, I want the row to continue continue to show that value while they are editing. That way, if they cancel their edit, the grid will not have to be rebound and that cell value will not have changed.
But when they hit the update button to commit their changes, I want to intercept it and change the UerEditedLabel2.Text value to the current user's username before the commit.
I have tried probably 10 ways to do this with no luck.
Any help would be appreciated. Thanks.
I have a radgrid holding customer notes with a column called UserUpdated. The UserUpdated column is the last user to have updated the note in the row. It is a template column like this:
<
telerik:GridTemplateColumn
DataField
=
"UserEdited"
FilterControlAltText
=
"Filter UserEdited column"
HeaderText
=
"UserEdited"
SortExpression
=
"UserEdited"
UniqueName
=
"UserEdited"
>
<
EditItemTemplate
>
<
asp:Label
ID
=
"UserEditedLabel2"
runat
=
"server"
Text='<%# Bind("UserEdited") %>'></
asp:Label
>
</
EditItemTemplate
>
<
ItemTemplate
>
<
asp:Label
ID
=
"UserEditedLabel"
runat
=
"server"
Text='<%# Eval("UserEdited") %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
When the person hits the edit button on that row, I want the row to continue continue to show that value while they are editing. That way, if they cancel their edit, the grid will not have to be rebound and that cell value will not have changed.
But when they hit the update button to commit their changes, I want to intercept it and change the UerEditedLabel2.Text value to the current user's username before the commit.
I have tried probably 10 ways to do this with no luck.
Any help would be appreciated. Thanks.