BootstrapAccordionGroupCollection.CollapseAll(BootstrapAccordionGroup) Method

Collapses all groups but the specified one.

Namespace: DevExpress.Web.Bootstrap

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


public void CollapseAll(
    BootstrapAccordionGroup exceptGroup


Name Type Description
exceptGroup BootstrapAccordionGroup

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


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