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.v24.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
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 | Gets a popup window object related to the event. Inherited from PopupControlCommandEventArgs. |
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.