Skip to main content
A newer version of this page is available. .

BootstrapPopupControl.PopupCommand Event

Fires when a control contained within a templated popup window raises the Command event.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v19.2.dll

Declaration

public event BootstrapPopupControlCommandEventHandler PopupCommand

Event Data

The PopupCommand event's data class is BootstrapPopupControlCommandEventArgs. The following properties provide information specific to this event:

Property Description
CommandArgument Gets the argument for the command. Inherited from CommandEventArgs.
CommandName Gets the name of the command. Inherited from CommandEventArgs.
CommandSource Gets an object representing the control which forced a postback. Inherited from PopupControlCommandEventArgs.
Window This member is not in effect for this class. It is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio designer tools.

Remarks

The contents of a control’s popup window can be customized by defining templates. A popup window template can be specified by the following BootstrapPopupControl properties: ASPxPopupControlBase.HeaderTemplate, ASPxPopupControlBase.HeaderContentTemplate, ASPxPopupControlBase.FooterTemplate and ASPxPopupControlBase.FooterContentTemplate. A template is a set of HTML elements and controls, which constitute a layout for a particular window element.

The PopupCommand event is fired when any control contained within a templated popup window raises the Command event. The PopupCommand event is commonly used when a specific command name is associated with a button control placed within a popup window. This allows you to create multiple button controls within a templated popup window and programmatically determine which button control is clicked.

Write an PopupCommand event handler to perform specific actions each time the Command event is raised by any control contained within a templated popup window. The PopupCommand event provides a parameter of the BootstrapPopupControlCommandEventArgs type.

See Also