RadDataForm cancel button is commiting changes

2 posts, 0 answers
  1. Alexandre
    Alexandre avatar
    1 posts
    Member since:
    Oct 2012

    Posted 02 Nov 2012 Link to this post

    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
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 02 Nov 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top