ModificationsController Class
An ObjectViewController descendant that contains Cancel, Save, Save And Close, and Save And New Actions.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
ModificationsController
displays Cancel, Save, SaveAndClose and SaveAndNew Actions in Object Views.
- ASP.NET Core Blazor
- Windows Forms
- ASP.NET Web Forms
For detailed information about Cancel, Save, Save and Close, and Save and New Actions, refer to the following property descriptions:
- ModificationsController.CancelAction
- ModificationsController.SaveAction
- ModificationsController.SaveAndCloseAction
- ModificationsController.SaveAndNewAction
To customize the default behavior of these Actions, inherit from a platform-specific Controller or subscribe to its events. In addition, you can access Actions to modify their behavior.
Platform | Descendant |
---|---|
ASP.NET Core Blazor | BlazorModificationsController |
Windows Forms | WinModificationsController |
ASP.NET Web Forms | WebModificationsController |
If you need to override one the following protected virtual methods, inherit from the platform-specific controller:
Method | Trigger Action | Description |
---|---|---|
Save |
The Save Action. | The Save Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants. |
SaveAndClose |
The Save and Close Action. | The Save and Close Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants. |
SaveAndNew |
The Save and New Action. | The Save and New Action’s SimpleAction.Execute event handler. Commits changes made to the current View’s object and executes the New Action, if it is available (see NewObjectViewController.NewObjectAction). |
Cancel |
The Cancel Action. | The Cancel Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants. |
UpdateActionState |
A change in environment (for example, the current object was changed). | Checks whether the active or enabled state of the Save, Save and Close, Save and New and Cancel Actions should be changed after changes in the environment. |
This Controller is activated for Object Views only. To check whether the Controller is active, use the Controller.Active property. If you need to know the reason for its deactivation or activation at runtime, use the DiagnosticInfo Action.
Information about ModificationsController
and its Cancel, Save, SaveAndClose, and SaveAndNew Actions is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.