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

RadDataForm cancel button is commiting changes

1 Answer 50 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 02 Nov 2012, 10:53 AM
Hi there.

I am using RadDataForm with custom Edittemplate and ReadOnlyTemplate. My problem is when I press "edit" on the RadDataForm, the buttons commit and cancel are not enabled. If I change a value on a field and click out of this field I the buttons get enable. After that, if I press cancel the new entered values stay there.

I am just trying to have a normal cancel button. When I press the cancel button I have the original values back on the fields.

Properties on the RadDataForm
AutoCommit = False
AutoEdit = False
AutoGenerateFields = False

Any tips where I am going wrong?

Thanks
Alex

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 02 Nov 2012, 11:57 AM
Hello,

The easiest way to achieve that would be to have your data object implement the IEditableObject interface .


All the best,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataForm
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or