Skip to main content
Tab

NavBarGroupCollection.CollapseAll() Method

Collapses all groups that belong to the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public void CollapseAll()

Remarks

Use the CollapseAll method to collapse all groups contained within the navbar’s ASPxNavBar.Groups collection.

Note that a call to this method collapses the expanded groups even if the navbar’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 ASPxNavBar.ExpandedChanging and ASPxNavBar.ExpandedChanged events.

See Also