Occurs before an end-user performs the operation that leads to raising an Action‘s Execute event.
The Executing event's data class is CancelEventArgs. The following properties provide information specific to this event:
|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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Executing event.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.