Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DialogController.CancelAction Property

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

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public SimpleAction CancelAction { get; }

#Property Value

Type Description
SimpleAction

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

#Remarks

The Dialog Controller contains the Cancel Action. This Action is available if it has a caption. To execute this Action, press the current pop-up Window’s cancel button. When executing this Action, the pop-up Window is closed.

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

To change any of the Cancel Action’s settings (ActionBase.Caption, ActionBase.Active), use the CancelAction property. To perform custom code before executing this Action, handle the Dialog Controller’s DialogController.Cancelling event. To change the default behavior of this Action, use the Dialog Controller’s DialogController.CanCloseWindow property

By default, the Cancel 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