BootstrapMenuItem.Items Property

Gets a collection that contains the submenu items of the current menu item.

Namespace: DevExpress.Web.Bootstrap

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


public BootstrapMenuItemCollection Items { get; }

Property Value

Type Description

A BootstrapMenuItemCollection that contains the submenu items of the current menu item.


Use the Items property (collection) to access the submenu items of the current menu item, if any. This collection contains only the menu items at the next level. To access menu items further down the menu tree, use the Items property of a subsequent menu item. If the Items property is the null reference (Nothing in Visual Basic), the current menu item does not have any submenu items.

The Items property can be also used to programmatically manage the submenu items of the current menu item. You can add, insert, remove, retrieve, and modify BootstrapMenuItem objects from the collection. Any updates to the collection will be automatically reflected in the menu control the next time the page is refreshed.

Note that the items of a menu’s root level can be accessed via the BootstrapMenu.Items property of the menu control.


This example demonstrates the basic functionality of the Menu control.

The image below shows the result:


<dx:BootstrapMenu runat="server" ShowPopOutImages="true">
        <dx:BootstrapMenuItem Text="Home" IconCssClass="fa fa-home">
                <dx:BootstrapMenuItem Text="News">
                        <dx:BootstrapMenuItem Text="For Developers">
                        <dx:BootstrapMenuItem Text="Website news">
                <dx:BootstrapMenuItem Text="Our Mission" BeginGroup="true">
                <dx:BootstrapMenuItem Text="Our Customers">
See Also