ASPxPanel Class
Represents a panel control that acts as a container for other controls.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v21.1.dll
NuGet Package: DevExpress.Web
Declaration
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.Controls property and the PanelContent control.
<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:
- The control’s client-side equivalent is represented by the ASPxClientPanel object.
- On the client side, the client object can be accessed directly by the name specified via the ASPxPanelBase.ClientInstanceName property.
- The available client events can be accessed by using the ASPxPanel.ClientSideEvents property.
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.