Tab
A newer version of this page is available. Switch to the current version.

ASPxPanel Class

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxPanel :
    ASPxCollapsiblePanel
Public Class ASPxPanel
    Inherits ASPxCollapsiblePanel

Remarks

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.PanelCollection property and the PanelContent control as it is demonstrated in the following example:


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

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.

NOTE

The ASPxPanel control provides you with a comprehensive client-side functionality implemented using JavaScript code (see DevExpress.Web.Scripts to learn more):

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