ActionBase.ExecuteCompleted Event

Occurs after all actions implemented in the Execute, ActionBase.Executed and ActionBase.ProcessCreatedView event handlers have been performed.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v18.1.dll

Declaration

public event EventHandler<ActionBaseEventArgs> ExecuteCompleted
Public Event ExecuteCompleted As EventHandler(Of ActionBaseEventArgs)

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

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.

Note

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).

See Also