Skip to main content

BootstrapAccordionGroupCollection.CollapseAll(BootstrapAccordionGroup) Method

Collapses all groups but the specified one.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public void CollapseAll(
    BootstrapAccordionGroup exceptGroup
)

Parameters

Name Type Description
exceptGroup BootstrapAccordionGroup

A BootstrapAccordionGroup object representing the group whose expansion state should not be changed.

Remarks

Use the CollapseAll method to collapse all groups contained within the accordion’s BootstrapAccordion.Groups collection except the one specified by the exceptGroup parameter. The expansion state of the specified group is not changed.

Note that a call to this method collapses the expanded groups even if the accordion’s ASPxNavBar.AllowExpanding (or a group’s NavBarGroup.AllowExpanding) property is set to false. A call to the CollapseAll method does not generate a sequence of the BootstrapAccordion.ExpandedChanging and BootstrapAccordion.ExpandedChanged events.

See Also