Class
RadMenu

Represents the RadMenu class.

Definition

Namespace:Telerik.WebAii.Controls.Html

Assembly:Telerik.WebAii.Controls.Html.dll

Syntax:

cs-api-definition
public class RadMenu : HtmlDiv

Inheritance: objectControlHtmlControlHtmlContainerControlHtmlDivRadMenu

Inherited Members HtmlContainerControl.TextContentHtmlContainerControl.InnerTextHtmlControl.FindParentContainer<TContainerControl>()HtmlControl.ValidateTag(string)HtmlControl.ValidateControl()HtmlControl.ParseResponseValue<T>(string, T)HtmlControl.GetAttributeAsString(string)HtmlControl.InitializeMappings(MappingsCollection)HtmlControl.GetRectangle()HtmlControl.IsVisible()HtmlControl.GetStyleValue(string)HtmlControl.GetStyle(string)HtmlControl.GetComputedStyleValue(string)HtmlControl.GetComputedStyle(string)HtmlControl.Parent<TContainerControl>()HtmlControl.Capture()HtmlControl.Capture(string, string)HtmlControl.Capture(string)HtmlControl.InvokeEvent(ScriptEventType)HtmlControl.InvokeEvent(ScriptEventType, bool)HtmlControl.InvokeEvent(ScriptEvent)HtmlControl.InvokeEvent(ScriptEvent, bool)HtmlControl.AddEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.RemoveEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.MouseClick()HtmlControl.MouseClick(MouseClickType)HtmlControl.MouseClick(MouseClickType, int, int)HtmlControl.MouseClick(MouseClickType, Point, OffsetReference)HtmlControl.MouseClick(MouseClickType, int, int, OffsetReference)HtmlControl.MouseHover()HtmlControl.MouseHover(Point)HtmlControl.MouseHover(int, int)HtmlControl.MouseHover(int, int, OffsetReference)HtmlControl.Click()HtmlControl.Click(bool)HtmlControl.ScrollToVisible()HtmlControl.ScrollToVisible(ScrollToVisibleType)HtmlControl.ScrollToVisible(ScrollToVisibleType, Rectangle)HtmlControl.Download(bool, DownloadOption, string, int)HtmlControl.CallMethod(string)HtmlControl.CallMethod<T>(string)HtmlControl.CallMethod<T>(string, T)HtmlControl.GetValue<T>(string)HtmlControl.GetValue<T>(string, T)HtmlControl.GetValue<T>(string, bool)HtmlControl.GetValue<T>(string, bool, T)HtmlControl.SetValue<T>(string, T)HtmlControl.SetValue<T>(string, T, bool)HtmlControl.DragTo(OffsetReference, Point, int, int)HtmlControl.DragTo(OffsetReference, int, int, Rectangle, OffsetReference, int, int)HtmlControl.DragTo(Point)HtmlControl.DragTo(int, int)HtmlControl.DragTo(HtmlControl)HtmlControl.DragTo(HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, Point, HtmlControl)HtmlControl.DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, int, int, bool, HtmlControl, OffsetReference, int, int, bool)HtmlControl.DragToWindowLocation(OffsetReference, int, int, bool, OffsetReference, int, int, bool)HtmlControl.ToString()HtmlControl.AsjQueryControl()HtmlControl.GetElementByTagNameClientSideLocatorHtmlControl.GetElementByIdClientSideLocatorHtmlControl.FindHtmlControl.ScrollTopHtmlControl.ScrollLeftHtmlControl.WaitHtmlControl.IDHtmlControl.CssClassHtmlControl.AttributesHtmlControl.MappingsHtmlControl.StylesHtmlControl.EventsHtmlControl.TagNameHtmlControl.ChildNodesHtmlControl.IsActiveElementHtmlControl.IsEnabledControl.Refresh()Control.AssignFailed(Exception)Control.SetTelerikComponentsVersion(TelerikComponentsVersion?)Control.MatchControl(Element, FindParam)Control.GetFamilyElement(int, Element)Control.ThrowOnInvalidAssignmentControl.TelerikComponentsVersionControl.IsRefreshControl.BaseElementControl.OwnerBrowserControl.Locator

Constructors

RadMenu()

Initializes a new instance of the RadMenu class.

Declaration

cs-api-definition
public RadMenu()

RadMenu(Element)

Initializes a new instance of the RadMenu class.

Declaration

cs-api-definition
public RadMenu(Element element)

Parameters

element

Element

Properties

AllBaseItems

Get all the Base Menu items.

Declaration

cs-api-definition
[Obsolete("Use AllItems instead")]
public IList<BaseMenuItem> AllBaseItems { get; }

Property Value

IList<BaseMenuItem>

AllItems

Get all the Menu items.

Declaration

cs-api-definition
public IList<RadMenuItem> AllItems { get; }

Property Value

IList<RadMenuItem>

AllLightItems

Get all the Light Menu items.

Declaration

cs-api-definition
[Obsolete("Use AllItems instead")]
public IList<RadLightMenuItem> AllLightItems { get; }

Property Value

IList<RadLightMenuItem>

AllMobileItems

Get all the Mobile Menu items.

Declaration

cs-api-definition
[Obsolete("Use AllItems instead")]
public IList<BaseMenuItem> AllMobileItems { get; }

Property Value

IList<BaseMenuItem>

ClickToOpen

Get whether the menu ClickToOpen property is set to true.

Declaration

cs-api-definition
public bool ClickToOpen { get; }

Property Value

bool

Clicked

True if the user has clicked on a root menu item to expand it when ClickToOpen is True.

Declaration

cs-api-definition
public bool Clicked { get; set; }

Property Value

bool

ClientId

The client ID of this Menu control.

Declaration

cs-api-definition
public string ClientId { get; }

Property Value

string

ClientSideLocator

Client side locator.

Declaration

cs-api-definition
public override string ClientSideLocator { get; }

Property Value

string

Overrides HtmlControl.ClientSideLocator

EnableRootItemScroll

True if the menu EnableRootItemScroll property is true.

Declaration

cs-api-definition
public bool EnableRootItemScroll { get; }

Property Value

bool

Enabled

Get whether the menu is enabled.

Declaration

cs-api-definition
public bool Enabled { get; }

Property Value

bool

FocusedItem

Returns the focused root level item. Null if no item has focus.

Declaration

cs-api-definition
public RadMenuItem FocusedItem { get; }

Property Value

RadMenuItem

IsGridFilteringMenu

Get whether the menu is a context menu as RadGrid filtering menu.

Declaration

cs-api-definition
public bool IsGridFilteringMenu { get; }

Property Value

bool

LocatorExpression

Get the FindExpression.

Declaration

cs-api-definition
public override IFindExpression LocatorExpression { get; }

Property Value

IFindExpression

Overrides Control.LocatorExpression

OpenedItem

Returns the opened root level item. If no item is opened at the root level returns null.

Declaration

cs-api-definition
public RadMenuItem OpenedItem { get; }

Property Value

RadMenuItem

OrientationType

Menu orientation.

Declaration

cs-api-definition
public MenuOrientationType OrientationType { get; }

Property Value

MenuOrientationType

PopupDiv

Get the popup div.

Declaration

cs-api-definition
public HtmlDiv PopupDiv { get; }

Property Value

HtmlDiv

PopupVisible

Get whether the popup is visible.

Declaration

cs-api-definition
public bool PopupVisible { get; }

Property Value

bool

RenderMode

Render mode of menu.

Declaration

cs-api-definition
public RenderMode RenderMode { get; }

Property Value

RenderMode

RootBaseItems

Get the list of the root items.

Declaration

cs-api-definition
[Obsolete("Use RootItems instead")]
public IList<BaseMenuItem> RootBaseItems { get; }

Property Value

IList<BaseMenuItem>

RootItems

Get the list of the root items.

Declaration

cs-api-definition
public IList<RadMenuItem> RootItems { get; }

Property Value

IList<RadMenuItem>

RootLightItems

Get the list of the root light items.

Declaration

cs-api-definition
[Obsolete("Use RootItems instead")]
public IList<RadLightMenuItem> RootLightItems { get; }

Property Value

IList<RadLightMenuItem>

RootMobileItems

Get the list of the root mobile items.

Declaration

cs-api-definition
[Obsolete("Use RootItems instead")]
public IList<BaseMenuItem> RootMobileItems { get; }

Property Value

IList<BaseMenuItem>

Methods

AssignElement(Element)

Assign the DOM element to be the Menu control.

Declaration

cs-api-definition
public override void AssignElement(Element e)

Parameters

e

Element

Overrides HtmlDiv.AssignElement(Element)

Close()

Closes all opened items from the menu.

Declaration

cs-api-definition
public void Close()

ControlAssert()

Get the RadControlInstance initialized for this control.

Declaration

cs-api-definition
public RadControlAssert ControlAssert()

Returns

RadControlAssert

Disable()

Disables all items in the menu. Clicking on any item has no effect, child items cannot be opened.

Declaration

cs-api-definition
public void Disable()

DisableEvents()

Disables the control client-side event emitting.

Declaration

cs-api-definition
public void DisableEvents()

Enable()

Enables all items in the menu.

Declaration

cs-api-definition
public void Enable()

EnableEvents()

Enables the control client-side event emitting. Events are enabled by default.

Declaration

cs-api-definition
public void EnableEvents()

FindItem(Predicate<RadMenuItem>)

Find item by given predicate.

Declaration

cs-api-definition
public RadMenuItem FindItem(Predicate<RadMenuItem> predicate)

Parameters

predicate

Predicate<RadMenuItem>

The predicate used as a search criteria.

Returns

RadMenuItem

The item found or 'null' if no item matches the given search criteria.

FindItemByText(string)

Finds item by Text.

Declaration

cs-api-definition
public RadMenuItem FindItemByText(string itemText)

Parameters

itemText

string

Returns

RadMenuItem

FindItemByValue(string)

Finds item by Value.

Declaration

cs-api-definition
public RadMenuItem FindItemByValue(string itemValue)

Parameters

itemValue

string

Returns

RadMenuItem

FindItems(Predicate<RadMenuItem>)

Get the list of the items find by given predicate.

Declaration

cs-api-definition
public IList<RadMenuItem> FindItems(Predicate<RadMenuItem> predicate)

Parameters

predicate

Predicate<RadMenuItem>

The predicate used for search criteria.

Returns

IList<RadMenuItem>

The list of the root items.

FindItemsByLevel(int)

Get the list of items by given level.

Declaration

cs-api-definition
public IList<RadMenuItem> FindItemsByLevel(int level)

Parameters

level

int

The level to search for.

Returns

IList<RadMenuItem>

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

cs-api-definition
public override void Focus()

Overrides HtmlControl.Focus()

HidePopup()

Hide the menu popup.

Declaration

cs-api-definition
public void HidePopup()

InitializeItems()

Initializes all menu items.

Declaration

cs-api-definition
public void InitializeItems()

ShowPopup()

Show the menu popup.

Declaration

cs-api-definition
public void ShowPopup()