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

CancelEdit not reverting object back to original

3 Answers 127 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stephen
Top achievements
Rank 1
Stephen asked on 17 Jan 2012, 01:53 PM
Hi,

We have recently migrated from the Silverlight Toolkit DataForm to the Telerik DataForm (2011.2.712.1040)

If i went into edit mode on the Toolkit DataForm, made changes to a value in a text box and pushed cancel, the value would revert back to the origina, using ReadOnly/Edit Templates.

The same does not work for Telerik also using ReadOnly/Edit/New Templates.

My object is implememting IEditableObject but I have not put any code in the BeginEdit() and CancelEdit() methods as I didn't need to for the Toolkit DataForm, it just worked.

Is there a way for this to work with the Telerik DataForm without me having to write a bunch of extra code?

Thanks,

Steve

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 17 Jan 2012, 05:11 PM
Hello Stephen,

You will have to properly implement IEditableObject, in order to benefit from RadDataForm's CancelEdit feature, as IEditableObject.CancelEdit is called when the respective command is executed. Would you please share with us your concerns about not implementing the mentioned interface?

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Stephen
Top achievements
Rank 1
answered on 18 Jan 2012, 07:08 AM
Hi Ivan,

My main concern is that i would now have to write aiddtional code to handle the CancelEdit wheras with the Toolkit version of the DataForm I dont have to write any code, it reverted the object back to its original state when calling CancelEdit automatically.

Is there a reason why the Telerik control has not adopted the same behaviour?

Thanks,

Steve
0
Ivan Ivanov
Telerik team
answered on 18 Jan 2012, 10:14 AM
Hi Stephen,

Would you please send us the implementation of your business object, so that we can test the difference on our side? As our ultimate goal is to enhance our clients' experience with RadControls, we will do our best to provide consistent behavior in this scenario between toolkit DataForm and RadDataForm. Thank you for you valuable feedback.

Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
DataForm
Asked by
Stephen
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or