Skip to main content
.NET Framework 4.6.2+

DialogController.AcceptAction Property

Provides access to the current Dialog Controller’s DialogOKAction.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public SimpleAction AcceptAction { get; }

Property Value

Type Description
SimpleAction

A SimpleAction object representing the Dialog Controller’s DialogOK Action.

Remarks

The Dialog Controller contains the Accept Action. This Action is available if it has a caption. To execute this Action, press the current pop-up Window’s accept button or double-click an object in the pop-up Window’s List View. Executing this Actions results in the following:

  • The current Window contains a Detail View:

    The Save Action of the current Window’s ModificationsController is executed (by the Execute event handler), and the Window is closed (by the ExecuteCompleted event handler).

  • The current Window contains a List View:

    The current Window is closed (by the ExecuteCompleted event handler).

The Accept Action’s ActionBase.ActionMeaning property is set to ActionMeaning.Accept, by default.

To change any of the Accept Action’s settings (ActionBase.Caption, ActionBase.Active), use the AcceptAction property. To perform custom code before executing this Action, handle the Dialog Controller’s DialogController.Accepting event. To change the default behavior of this Action, use the Dialog Controller’s DialogController.SaveOnAccept and DialogController.CanCloseWindow properties.

By default, the Accept Action is displayed by the “PopupActions” Action Container. To change this behavior, use the DialogController.DialogActionContainerName field. If you set another Action Container for this field, be sure that it is contained in the Template that displays your pop-up Window.

See Also