Skip to main content

ASPxClientDockZone.GetPanelByVisibleIndex(visibleIndex) Method

Returns a panel specified by its visible index.

Declaration

GetPanelByVisibleIndex(
    visibleIndex: number
): ASPxClientDockPanel

Parameters

Name Type Description
visibleIndex number

The panel’s position among the visible panels within the current zone.

Returns

Type Description
ASPxClientDockPanel

An ASPxClientDockPanel object that is the panel with the specified visible index.

Remarks

An ASPxDockZone control’s client-side functionality allows an individual panel to be accessed programmatically. The GetPanelByVisibleIndex method gets a client panel object specified by its visible index. A panel’s visible index is defined by the ASPxDockPanel.VisibleIndex property, and can be obtained on the client side using the ASPxClientDockPanel.GetVisibleIndex method.

This method searches the specified panel amongst all panels contained in the current zone. Note that if an invalid visible index is passed via the parameter, this method returns null.

In order to access a panel specified by its unique identifier within a zone, the zone’s ASPxClientDockZone.GetPanelByUID method can be used.

See Also