Gets or sets a boolean value indicating whether the item is in "Selected" state.
[Visual Basic]
Public Property Selected As
Boolean
[C#]
public
Boolean Selected {get; set;}
Property Value
System.Boolean
This property is read/write.
Remarks
Use Selected property to specify whether a item is "Selected" or not. Unlike regular items that switches styles according to mouse events, A "Selected" item always uses SelectedStyle, If SelectedStyle is not defined, HoverStyle is used, if HoverStyle is not defined, NormalStyle is used.
For a SlideMenu, setting a top level item's Selected to True also expand the sliding pane.
Tip:
You can call MenuItem.setSelected on client side through client side script interface. Note you should not call this function to expand/collapse a slide pane for a slide menu. Use MenuItem.expandSubMenu or MenuItem.collapseSubMenu instead.
See Also
NavigationItem Class | EO.Web Namespace