CancelEdit not reverting object back to original

4 posts, 0 answers
  1. Stephen
    Stephen avatar
    11 posts
    Member since:
    Aug 2010

    Posted 17 Jan 2012 Link to this post

    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

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 17 Jan 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Stephen
    Stephen avatar
    11 posts
    Member since:
    Aug 2010

    Posted 18 Jan 2012 Link to this post

    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
  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 18 Jan 2012 Link to this post

    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 >>
Back to Top