Enable Cancel Button when editing record

2 posts, 0 answers
  1. Rick
    Rick avatar
    1 posts
    Member since:
    Feb 2011

    Posted 12 May 2011 Link to this post

    Is there a way to Cancel in the middle of editing an item in the RadDataForm?  
    When I click on the Add Button, both the Commit Button and Cancel Button are enabled, so I can cancel out of creating a new record.
    When I click on the Edit Button, the Commit Button is enabled, but the Cancel Button is grayed out.  

    I am binding an ObservableCollection of objects to the RadDataForm ItemsSource property which gets loaded in the WindowLoaded event handler, and reloaded after adding, editing or deleting an item in the collection.   

    I would like the user to be able to cancel an editing operation where the item being edited reverts to its previous state if the user clicks the Cancel Button.  Is this possible?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 13 May 2011 Link to this post

    Hi,

     Your items should be IEditableObject if you want cancel. More info you can find here

    Best wishes,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top