
Bryan Hughes
Top achievements
Rank 1
Bryan Hughes
asked on 18 Jan 2013, 07:13 PM
Hello,
I have a Grid that uses a template column with an AsyncUpload control in edit Item Template. On update of row I need to get the original value of the cell (fileName) before update to delete file then complete update event. What would be the best approach?
Thank you,
Bryan
I have a Grid that uses a template column with an AsyncUpload control in edit Item Template. On update of row I need to get the original value of the cell (fileName) before update to delete file then complete update event. What would be the best approach?
Thank you,
Bryan
4 Answers, 1 is accepted
0
Hello,
Go through the article below to see how to retrieving original values for edited Item:
http://www.telerik.com/help/aspnet-ajax/grid-retrieve-original-values-for-edited-item.html
Kind regards,
Pavlina
the Telerik team
Go through the article below to see how to retrieving original values for edited Item:
http://www.telerik.com/help/aspnet-ajax/grid-retrieve-original-values-for-edited-item.html
Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Bryan Hughes
Top achievements
Rank 1
answered on 18 Jan 2013, 07:48 PM
Something like this?
Protected
Sub
RadGrid1_ItemDataBound(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridItemEventArgs)
Handles
RadGrid1.ItemDataBound
If
(
TypeOf
e.Item
Is
GridEditableItem
AndAlso
e.Item.IsInEditMode)
Then
Dim
editItem
As
GridEditFormItem =
CType
(e.Item, GridEditFormItem)
Dim
itemValue
As
String
= editItem(
"Title"
).Text
Session(
"savedOldTitle"
) = Title
End
If
End
Sub
0

Bryan Hughes
Top achievements
Rank 1
answered on 18 Jan 2013, 08:52 PM
What if I also need to get the orginal value of a cell before update, but it is not editable column?
0

Shinu
Top achievements
Rank 2
answered on 21 Jan 2013, 04:47 AM
Hi,
Try the following code to access cell values.
C#:
Thanks,
Shinu
Try the following code to access cell values.
C#:
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
TableCell cell = (TableCell)item[
"Uniquename"
];
string
value = cell.Text;
}
}
Thanks,
Shinu