ClassRadMenu
Represents the RadMenu class.
Definition
Namespace:Telerik.WebAii.Controls.Html
Assembly:Telerik.WebAii.Controls.Html.dll
Syntax:
public class RadMenu : HtmlDiv
Inheritance: objectControlHtmlControlHtmlContainerControlHtmlDivRadMenu
Inherited Members
Constructors
RadMenu()
Initializes a new instance of the RadMenu class.
Declaration
public RadMenu()
RadMenu(Element)
Initializes a new instance of the RadMenu class.
Properties
AllBaseItems
Get all the Base Menu items.
Declaration
[Obsolete("Use AllItems instead")]
public IList<BaseMenuItem> AllBaseItems { get; }
Property Value
AllItems
Get all the Menu items.
Declaration
public IList<RadMenuItem> AllItems { get; }
Property Value
AllLightItems
Get all the Light Menu items.
Declaration
[Obsolete("Use AllItems instead")]
public IList<RadLightMenuItem> AllLightItems { get; }
Property Value
AllMobileItems
Get all the Mobile Menu items.
Declaration
[Obsolete("Use AllItems instead")]
public IList<BaseMenuItem> AllMobileItems { get; }
Property Value
ClickToOpen
Get whether the menu ClickToOpen property is set to true.
Clicked
True if the user has clicked on a root menu item to expand it when ClickToOpen is True.
ClientId
The client ID of this Menu control.
ClientSideLocator
Client side locator.
Declaration
public override string ClientSideLocator { get; }
Property Value
Overrides
EnableRootItemScroll
True if the menu EnableRootItemScroll property is true.
Enabled
Get whether the menu is enabled.
FocusedItem
Returns the focused root level item. Null if no item has focus.
IsGridFilteringMenu
Get whether the menu is a context menu as RadGrid filtering menu.
LocatorExpression
Get the FindExpression.
Declaration
public override IFindExpression LocatorExpression { get; }
Property Value
Overrides
OpenedItem
Returns the opened root level item. If no item is opened at the root level returns null.
OrientationType
Menu orientation.
Declaration
public MenuOrientationType OrientationType { get; }
Property Value
PopupDiv
Get the popup div.
PopupVisible
Get whether the popup is visible.
RenderMode
Render mode of menu.
RootBaseItems
Get the list of the root items.
Declaration
[Obsolete("Use RootItems instead")]
public IList<BaseMenuItem> RootBaseItems { get; }
Property Value
RootItems
Get the list of the root items.
Declaration
public IList<RadMenuItem> RootItems { get; }
Property Value
RootLightItems
Get the list of the root light items.
Declaration
[Obsolete("Use RootItems instead")]
public IList<RadLightMenuItem> RootLightItems { get; }
Property Value
RootMobileItems
Get the list of the root mobile items.
Declaration
[Obsolete("Use RootItems instead")]
public IList<BaseMenuItem> RootMobileItems { get; }
Property Value
Methods
AssignElement(Element)
Assign the DOM element to be the Menu control.
Declaration
public override void AssignElement(Element e)
Parameters
e
Overrides
ControlAssert()
Get the RadControlInstance initialized for this control.
Disable()
Disables all items in the menu. Clicking on any item has no effect, child items cannot be opened.
Declaration
public void Disable()
DisableEvents()
Disables the control client-side event emitting.
Declaration
public void DisableEvents()
EnableEvents()
Enables the control client-side event emitting. Events are enabled by default.
Declaration
public void EnableEvents()
FindItem(Predicate<RadMenuItem>)
Find item by given predicate.
Declaration
public RadMenuItem FindItem(Predicate<RadMenuItem> predicate)
Parameters
predicate
The predicate used as a search criteria.
Returns
The item found or 'null' if no item matches the given search criteria.
FindItemByText(string)
Finds item by Text.
Declaration
public RadMenuItem FindItemByText(string itemText)
Parameters
itemText
Returns
FindItemByValue(string)
Finds item by Value.
Declaration
public RadMenuItem FindItemByValue(string itemValue)
Parameters
itemValue
Returns
FindItems(Predicate<RadMenuItem>)
Get the list of the items find by given predicate.
Declaration
public IList<RadMenuItem> FindItems(Predicate<RadMenuItem> predicate)
Parameters
predicate
The predicate used for search criteria.
Returns
The list of the root items.
FindItemsByLevel(int)
Get the list of items by given level.
Declaration
public IList<RadMenuItem> FindItemsByLevel(int level)
Parameters
level
The level to search for.
Returns
The list of items by the given level.
Focus()
Brings the focus to the menu so that it can be controlled via the keyboard.
Declaration
public override void Focus()
Overrides
InitializeItems()
Initializes all menu items.
Declaration
public void InitializeItems()