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

ASPxPanel Class

Represents a panel control that acts as a container for other controls.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll


public class ASPxPanel :


The ASPxPanel control represents a container area for other controls. It is useful when you want to generate controls programmatically, hide/show a group of controls, etc. You can populate the ASPxPanel with other controls using the ASPxPanelContainerBase.Controls property and the PanelContent control.

<dx:ASPxPanel runat="server" ID="Panel">
            <dx:ASPxButton runat="server" ID="Button">

The ASPxPanel control inherits all its functionality from the base ASPxPanelBase class. This functionality enables the panel’s child controls to be manipulated (ASPxPanelContainerBase.Controls), the panel’s default button to be specified (ASPxPanelBase.DefaultButton), the panel’s initial visibility on the client to be defined (ASPxPanelBase.ClientVisible) etc. In addition, the ASPxPanel class implements the ASPxCollapsiblePanel.RenderMode property that allows you to specify how the panel should be rendered into the page.


The ASPxPanel control provides you with a comprehensive client-side functionality implemented using JavaScript code:

The control’s client-side API is enabled if the ASPxCollapsiblePanel.EnableClientSideAPI property is set to true, or the ASPxPanelBase.ClientInstanceName property is defined, or any client event is handled.

See Also