This is a migrated thread and some comments may be shown as answers.

OnItemDeleted ExtractValues and SavedOldValues

2 Answers 86 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Shaun
Top achievements
Rank 1
Shaun asked on 11 Jul 2016, 04:41 PM

In the OnItemDeleted event of RadDataForm there is a method for retrieving the deleted record (e.Item.ExtractValues()) and e.Item.SavedOldValues.  After successfully deleting a row I am finding that both the method and property listed above returns null.  This should not be the case -- in RadGrid and other controls these fields are populated.  What is the prescribed approach for accessing deleted data in an OnItemDeleted event?  (I also tried OnItemDeleting).  Any feedback is appreciated.

 

Thanks,

Shaun

2 Answers, 1 is accepted

Sort by
0
Shaun
Top achievements
Rank 1
answered on 11 Jul 2016, 04:43 PM
Telerik Version 2016.2.607.45, Code Behind (browser independent)...
0
Kostadin
Telerik team
answered on 14 Jul 2016, 12:55 PM
Hi Shaun,

Thank you for contacting us.

It is expected to not able to retrieve the values from the ItemDeleting method since there isn't an editing item. What I can suggest you is to retrieve the value from the Item collection of the DataForm. You can get the item y using the following code RadDataFormItem item = RadDataForm1.Items[0]; and use FindControl method to retrieve the values from the ItemTemplate.

Regards,
Kostadin
Telerik by Progress
Tags
DataForm
Asked by
Shaun
Top achievements
Rank 1
Answers by
Shaun
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or