BootstrapMenu.SelectedItem Property

Sets the menu’s selected menu item.

Namespace: DevExpress.Web.Bootstrap

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


public BootstrapMenuItem SelectedItem { get; set; }

Property Value

Type Description

A BootstrapMenuItem object representing the selected item.


If the menu’s ASPxMenuBase.AllowSelectItem property is set to true, end users are allowed to select menu items via mouse clicks. A BootstrapMenu control also provides the capability to select its items via code. You can use the SelectedItem property on the server side for this purpose.

Note that only one menu item can be selected within a menu control at the same time.

If none of the items is selected within a menu control or selecting is prohibited, the SelectedItem property returns null (Nothing in Visual Basic).

The selected state of an individual menu item can be specified by its MenuItem.Selected property.

See Also