ModificationsController.CancelAction Property
Provides access to the ModificationsController‘s Cancel Action.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
SimpleAction | A SimpleAction object representing the Cancel Action. |
Remarks
The Cancel Action is intended to rollback the changes made to the object selected in the current View (see BaseObjectSpace.Rollback).
This Action’s Execute event is handled by the Cancel protected method, overridden in the WinModificationsController and WebModificationsController, in different ways. When executing this Action in a Windows Forms application, a confirmation dialog can be invoked, if the ModificationsController.ModificationsHandlingMode property is set to ModificationsHandlingMode.Confirmation. In this dialog, you can prevent canceling changes or confirm them. If you do not want this dialog to be invoked, set the ModificationsHandlingMode property to ModificationsHandlingMode.AutoCommit or ModificationsHandlingMode.AutoRollback. In an ASP.NET Web Forms application, the confirmation message is not supported.
The Cancel Action is active when the current View is root (see View.IsRoot). Additionally, in ASP.NET Web Forms applications, it is active when the View is displayed in edit mode (see DetailView.ViewEditMode). In Windows Forms applications, its active state depends on the ModificationsController.ModificationsHandlingMode property value.
Information on the Cancel Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.