Skip to main content
A newer version of this page is available. .
Tab

NavBarGroup Class

Represents an individual group within the ASPxNavBar control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public class NavBarGroup :
    CollectionItem

Remarks

A navbar control maintains collections of groups and items. Groups are represented by instances of the NavBarGroup class which can be accessed by the ASPxNavBar.Groups property. This property returns the NavBarGroupCollection collection which allows you to add, delete and move groups within the navbar.

Use properties of the NavBarGroup class to specify the appearance and behavior of an individual group. Set the NavBarGroup.Expanded property to true to expand the group; set it to false to collapse the group. Use the NavBarGroup.Text property to define the caption text of the group. Define the NavBarGroup.VisibleIndex property to specify the position of the group among other groups in the navbar control. To get access to the items the group contains, you should use the NavBarGroup.Items property.

Note that the NavBarGroup class has a client-side equivalent - an object of the ASPxClientNavBarGroup type.

See Also