The requested page is not available for the requested platform. You are viewing the content for Default platform.

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

Optional Parameters

Name Type Default Description
visibleIndex number null

An integer value specifying the visible index position.

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.

Examples

var panel = manager.GetPanelByUID('MyPanel');
panel.Dock(manager.GetZoneByUID('MyZone'),0);
See Also