Back to Devexpress

ModificationsController Class

expressappframework-devexpress-dot-expressapp-dot-systemmodule-ac6110ca.md

latest6.2 KB
Original Source

ModificationsController Class

An ObjectViewController descendant that contains Cancel , Save , Save And Close , and Save And New Actions.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public class ModificationsController :
    ObjectViewController
vb
Public Class ModificationsController
    Inherits ObjectViewController

Remarks

ModificationsController displays Cancel , Save , SaveAndClose and SaveAndNew Actions in Object Views.

ASP.NET Core Blazor Windows 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.

PlatformDescendant
ASP.NET Core BlazorBlazorModificationsController
Windows FormsWinModificationsController

If you need to override one the following protected virtual methods, inherit from the platform-specific controller:

MethodTrigger ActionDescription
SaveThe Save Action.The Save Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants.
SaveAndCloseThe Save and Close Action.The Save and Close Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants.
SaveAndNewThe 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).
CancelThe Cancel Action.The Cancel Action’s SimpleAction.Execute event handler. Does nothing. Overridden in the Controller’s descendants.
UpdateActionStateA 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.

Implements

ISupportUpdate

Inheritance

Object MarshalByRefObject Component Controller ViewController ViewController<ObjectView> ObjectViewController ModificationsController BlazorModificationsController

WinModificationsController

See Also

ModificationsController Members

DevExpress.ExpressApp.SystemModule Namespace