NavBarGroupCollection.CollapseAll(NavBarGroup) Method
Collapses all groups but the specified one.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
exceptGroup | NavBarGroup | A NavBarGroup object representing the group whose expansion state should not be changed. |
Remarks
Use the CollapseAll method to collapse all groups contained within the navbar’s ASPxNavBar.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 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