Skip to main content

BootstrapClientAccordion.GetGroup(index) Method

Returns a group specified by its index.

Declaration

GetGroup(
    index: number
): BootstrapClientAccordionGroup

Parameters

Name Type Description
index number

An integer value specifying the zero-based index of the group object to retrieve.

Returns

Type Description
BootstrapClientAccordionGroup

A BootstrapClientAccordionGroup object representing the group located at the specified index within the Accordion’s BootstrapAccordion.Groups collection.

Remarks

The Accordion control’s client-side functionality allows its groups to be accessed programmatically on the client side. This method gets a client group object specified by the index it has within the BootstrapAccordion.Groups collection.

Note that the index parameter is zero-based and its upper available value is specified by the ASPxClientNavBar.GetGroupCount value decremented by one. If an invalid index is passed via the parameter, the method returns null.

This method can be used together with the ASPxClientNavBar.GetGroupCount method when iterating through the Accordion’s group list.

See Also