ASPxClientDockPanel.Dock(zone) Method
Docks the current panel in a zone at the specified position.
#Declaration
Dock(
zone: ASPxClientDockZone,
visibleIndex?: number
): void
#Parameters
Name | Type | Description |
---|---|---|
zone | ASPx |
An ASPx |
visible |
number | The panel’s visible index. |
#Remarks
Use the client-side Dock method to dock a panel at the specified position in the zone. You can obtain the dock state on the client side via the ASPxClientDockPanel.IsDocked method. To undock a panel, use the ASPxClientDockPanel.MakeFloat method.
Note that this method does not invoke the BeforeDock and AfterDock events.
#Example
var panel = manager.GetPanelByUID('MyPanel');
panel.Dock(manager.GetZoneByUID('MyZone'),0);