ActionBase.Executing Event

Occurs before an end-user performs the operation that leads to raising an Action's Execute event.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public event CancelEventHandler Executing
Public Event Executing As CancelEventHandler

The Executing event handler receives an argument of the CancelEventArgs type. The following properties provide information specific to this event.

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.

The main entry point of Actions is their Execute event. This event is raised when an end-user performs a predefined operation, specified in different ways for each Action type. For instance, if you add an Action of the SimpleAction type, the Execute event is raised when an end-user clicks the button that corresponds to this Action. See the SimpleAction, ParametrizedAction, SingleChoiceAction, PopupWindowShowAction and ActionUrl classes, for details.

Handle the Executing event to cancel execution of the current Action. For this purpose, set the handler's CancelEventHandler.Cancel parameter to true. In this instance, the ActionBase.ExecuteCanceled event will be raised.

See Also