Skip to main content

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 ASPxClientDockZone

An ASPxClientDockZone object specifying the zone, where the panel is docked

visibleIndex 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);
See Also