Skip to main content
All docs
V26.1
  • DialogEditFormBehavior Members

    Allows you to enable edit operations in a Data Grid bound to a Server Mode or Instant Feedback data source.

    Constructors

    Name Description
    DialogEditFormBehavior() Initializes a new instance of the DialogEditFormBehavior class.

    Fields

    Name Description
    AllowCancelAsyncOperationsProperty static Identifies the AllowCancelAsyncOperations dependency property.
    CreateEditItemViewModelCommandProperty static Identifies the CreateEditItemViewModelCommand dependency property.
    EditTemplateProperty static Identifies the EditTemplate dependency property.
    KeyPropertyProperty static Identifies the KeyProperty dependency property.
    ValidateRowCommandProperty static Identifies the ValidateRowCommand dependency property.
    ValidateRowDeletionCommandProperty static Identifies the ValidateRowDeletionCommand dependency property.

    Properties

    Name Description
    AllowCancelAsyncOperations Gets or sets whether users can cancel asynchronous “Post Changes” operations.
    CreateCommand Invokes the dialog edit form to allow users to add a new row to the control.
    CreateEditItemViewModelCommand Gets or sets a command that specifies a View Model for the edit operation. The behavior executes this command before the edit form dialog appears.
    DeleteCommand Deletes selected rows from the control.
    EditTemplate Gets or sets a template that defines editors in the dialog edit form. Use the CreateEditItemViewModel event or the CreateEditItemViewModelCommand to specify the template’s data context.
    HasAnimatedProperties Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties. Inherited from Animatable.
    KeyProperty Gets or sets a key field that you can use to find rows during edit operations.
    RowDoubleClickCommand Executes the CreateCommand or UpdateCommand depending on the selected row. This command is designed to allow you to bind it to the TableView.RowDoubleClickCommand / TreeListView.RowDoubleClickCommand.
    UpdateCommand Invokes the dialog edit form for the selected row.
    ValidateRowCommand Gets or sets a command that validates input values, checks database constraints, and saves changes to the database. The behavior executes this command after a user saves changes made in the edit form dialog.
    ValidateRowDeletionCommand Gets or sets a command that validates data, checks database constrains, and deletes rows. The behavior executes this command when user deletes selected rows.

    Methods

    Name Description
    ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
    ApplyAnimationClock(DependencyProperty, AnimationClock) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
    BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
    BeginAnimation(DependencyProperty, AnimationTimeline) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
    Clone() Creates a modifiable clone of this Animatable, making deep copies of this object’s values. When copying this object’s dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Inherited from Animatable.
    GetAnimationBaseValue(DependencyProperty) Returns the non-animated value of the specified DependencyProperty. Inherited from Animatable.
    ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.

    Events

    Name Description
    CreateEditItemViewModel Occurs before a user invokes the dialog edit form. This event allows you to specify a view model for the edit operation.
    ValidateRow Occurs after a user saves changes made in the dialog edit form. This event allows you to validate values, check database constraints, and save changes to the database.
    ValidateRowDeletion Occurs after a user removes selected rows from the control. This event allows you to validate rows, check database constraints, and delete rows from the database.
    See Also