Is there event row edit ending?

2 posts, 0 answers
  1. Jens Hobbie
    Jens Hobbie avatar
    15 posts
    Member since:
    Mar 2010

    Posted 21 Oct 2011 Link to this post


    We have a problem with RadGridView. I could not find event that is raised before edit is canceled (row is deleted in this case). In RowEditEnded event, action is already done and I could not revert it.
    Is there a way to handle event when row leaves edit mode on double presses the Esc key?

    My scenario is:

    -          Insert new row in RadGridView.

    -          Insert data in some cell.

    -          Press Esc to cancel edit of that cell.

    -          If Esc is pressed twice, added row disappears.

    I want to prevent user from losing data accidentally. I want to ask user to confirm canceling and only after his confirmation row can leave edit mode (can be removed in this case). If he doesn’t confirm cancel, row stays in edit mode.

    Thank in advance on any help. :)

  2. Vlad
    Vlad avatar
    11100 posts

    Posted 21 Oct 2011 Link to this post


     You can implement IEditableObject (look for CancelEdit in this case) for your data item to achieve your goal. 

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top