Skip to main content
.NET 6.0+

ModificationsController.SaveAndCloseAction Property

Provides access to the ModificationsController‘s Save And Close Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public SimpleAction SaveAndCloseAction { get; }

Property Value

Type Description
SimpleAction

A SimpleAction object that is the Save and Close Action.

Remarks

The Save And Close Action commits the changes made to the object selected in the current View and closes the View.

This Action’s Execute event is handled by the SaveAndClose protected method overridden in the BlazorModificationsController, WinModificationsController, and WebModificationsController in different ways. For instance, in an ASP.NET Web Forms application, the current View is not really closed, but displayed in view mode by default.

The Save And Close 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.

The Save And Close Action is disabled when the current user does not have permission to change the current object.

Information on the Save And Close Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.

See Also