OnItemDeleted ExtractValues and SavedOldValues

3 posts, 0 answers
  1. Shaun
    Shaun avatar
    2 posts
    Member since:
    Nov 2015

    Posted 11 Jul Link to this post

    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. Shaun
    Shaun avatar
    2 posts
    Member since:
    Nov 2015

    Posted 11 Jul in reply to Shaun Link to this post

    Telerik Version 2016.2.607.45, Code Behind (browser independent)...
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 14 Jul Link to this post

    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
Back to Top