Skip to main content
Tab

ASPxPopupControlBase.PopupWindowCommand Event

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public event PopupControlCommandEventHandler PopupWindowCommand

Event Data

The PopupWindowCommand event's data class is PopupControlCommandEventArgs. 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.
Window Gets a popup window object related to the event.

Remarks

The contents of a control’s window (popup windows for an ASPxPopupControl) can be customized by defining templates. A template of a window can be specified by the ASPxPopupControlBase.HeaderTemplate or ASPxPopupControlBase.FooterTemplate property (in addition to the ASPxPopupControl.WindowHeaderTemplate, PopupWindow.HeaderTemplate, ASPxPopupControl.WindowContentTemplate, PopupWindow.ContentTemplate, ASPxPopupControl.WindowFooterTemplate and PopupWindow.FooterTemplate properties for an ASPxPopupControl). A template is a set of HTML elements and controls, which constitute a layout for a particular window element.

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

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

See Also