Enabling the Cancel Button

2 posts, 1 answers
  1. Wayne
    Wayne avatar
    4 posts
    Member since:
    Apr 2011

    Posted 17 May 2011 Link to this post


    I've run into a problem with the RadDataForm where I cannot seem to get the Cancel button to become enabled.

    The problem exists in a much more complicated app, but I created a small test app to see if I could get it to work in a very simple implementation, however it still does not.

            <local:ViewModel x:Key="vm"/>

        <Grid x:Name="LayoutRoot" Background="White" DataContext="{StaticResource vm}">
            <telerik:RadDataForm ItemsSource="{Binding Data}"/>

    Data is an Observable collection defined in the ViewModel. Data is of Type 'DataClass' . Both the ViewModel and DataClass implement INotifyPropertyChanged.

    I've looked at the demo (http://demos.telerik.com/silverlight/#DataForm/FirstLook) where it appears to work, and there doesn't seem to be anything different there from what I have above.
  2. Answer
    Ivan Ivanov
    Ivan Ivanov avatar
    1116 posts

    Posted 17 May 2011 Link to this post

    Hi Wayne,

    RadDataForm's "Cancel" button is enabled only when your data type implement the IEditableObject interface. It executes the RadDataFormCommands.CancelEdit command that invokes the edited item's CancelEdit() method.

    Ivan Ivanov
    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
  3. DevCraft banner
Back to Top