Back to Devexpress

DialogController.AcceptAction Property

expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-dialogcontroller-1887e350.md

latest3.3 KB
Original Source

DialogController.AcceptAction Property

Provides access to the current Dialog Controller’s DialogOK Action.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public SimpleAction AcceptAction { get; }
vb
Public ReadOnly Property AcceptAction As SimpleAction

Property Value

TypeDescription
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 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

DialogController Class

DialogController Members

DevExpress.ExpressApp.SystemModule Namespace