BootstrapMenu.SelectedItem Property

Sets the menu's selected menu item.

Namespace: DevExpress.Web.Bootstrap

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

Declaration

[Browsable(false)]
public BootstrapMenuItem SelectedItem { get; set; }
<Browsable(False)>
Public Property SelectedItem As BootstrapMenuItem

Property Value

Type Description
BootstrapMenuItem

A BootstrapMenuItem object representing the selected item.

Remarks

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