The ExecuteCompleted event's data class is ActionBaseEventArgs. The following properties provide information specific to this event:
|Action||Provides access to the Action being executed.|
|ShowViewParameters||Provides access to the ShowViewParameters object, specifying a View, displayed after executing the current Action.|
The main entry point of Actions is their Execute event. This event is raised when an end-user performs a predefined operation, which is specified in a different way in 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 ExecuteCompleted event, to execute custom code after the Action execution has been completed.
In an Action’s Execute event handler, you can specify a View to be shown after executing the code implemented in this handler. For this purpose, specify the handler’s ActionBaseEventArgs.ShowViewParameters parameter. To access this View before it is shown, handle the ActionBase.ProcessCreatedView event. To access the View shown, handle the ExecuteCompleted event and use the handler’s ActionBaseEventArgs.ShowViewParameters parameter. If a View has not been initialized in the Execute or ActionBase.Executed event handler, the ExecuteCompleted event handler’s ShowViewParameters parameter returns null (Nothing in VB).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExecuteCompleted 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.