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

Enable Cancel Button when editing record

1 Answer 187 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 12 May 2011, 09:14 PM
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?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 May 2011, 06:30 AM
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
Tags
DataForm
Asked by
Rick
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or