NuGet Package: DevExpress.ExpressApp
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:
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.
|ASP.NET Core Blazor||BlazorModificationsController|
|ASP.NET Web Forms||WebModificationsController|
If you need to override one the following protected virtual methods, inherit from the platform-specific controller:
||The Save Action.||The Save Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants.|
||The Save and Close Action.||The Save and Close Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants.|
||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).|
||The Cancel Action.||The Cancel Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants.|
||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.