Class
BaseMenuItem

Represents the BaseMenuItem class.

Definition

Namespace:Telerik.WebAii.Controls.Html

Assembly:Telerik.WebAii.Controls.Html.dll

Syntax:

cs-api-definition
public class BaseMenuItem : HtmlContainerControl

Inheritance: objectControlHtmlControlHtmlContainerControlBaseMenuItem

Derived Classes: RadMenuItem

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.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

BaseMenuItem()

Initializes a new instance of the BaseMenuItem class.

Declaration

cs-api-definition
public BaseMenuItem()

BaseMenuItem(Element)

Initializes a new instance of the BaseMenuItem class.

Declaration

cs-api-definition
public BaseMenuItem(Element element)

Parameters

element

Element

Properties

ClientSideLocator

Get the Client side locator used in most of the properties. Returns 'null' for item separators.

Declaration

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

Property Value

string

Overrides HtmlControl.ClientSideLocator

Enabled

Get or set whether the menu item is enabled.

Declaration

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

Property Value

bool

Focused

Get or set whether this item is focused.

Declaration

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

Property Value

bool

Index

Get the index of the item.

Declaration

cs-api-definition
public int Index { get; }

Property Value

int

ItemType

The type of the menu item.

Declaration

cs-api-definition
public MenuItemType ItemType { get; }

Property Value

MenuItemType

ItemValue

Get or set the value for this item.

Declaration

cs-api-definition
public string ItemValue { get; set; }

Property Value

string

Items

Returns the list of child items of this menu item.

Declaration

cs-api-definition
public IList<BaseMenuItem> Items { get; }

Property Value

IList<BaseMenuItem>

Level

Get the level of the item.

Declaration

cs-api-definition
public int Level { get; }

Property Value

int

LocatorExpression

Get the FindParam that defines the pattern for a menu item.

Declaration

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

Property Value

IFindExpression

Overrides Control.LocatorExpression

NavigateUrl

Get or set the navigate url of this item.

Declaration

cs-api-definition
public string NavigateUrl { get; set; }

Property Value

string

Opened

Get whether this item is opened.

Declaration

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

Property Value

bool

Selected

Get whether the menu item is selected.

Declaration

cs-api-definition
public virtual bool Selected { get; }

Property Value

bool

ShouldNavigate

Check whether the item should navigate.

Declaration

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

Property Value

bool

Text

Get or set the text of this item.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

Visible

Get whether the item is visible.

Declaration

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

Property Value

bool

Methods

AssignElement(Element)

Assign the DOM element to be the BaseMenuItem control.

Declaration

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

Parameters

e

Element

Overrides HtmlContainerControl.AssignElement(Element)

Blur()

Blur the item.

Declaration

cs-api-definition
public void Blur()

Click()

Click the item or navigate if the NavigateUrl is set.

Declaration

cs-api-definition
public void Click()

Click(bool)

Click the item or navigate if the NavigateUrl is set.

Declaration

cs-api-definition
public override void Click(bool isClosing)

Parameters

isClosing

bool

Overrides HtmlControl.Click(bool)

Close()

Closes a item.

Declaration

cs-api-definition
public void Close()

FindItem(Predicate<BaseMenuItem>)

Find item by given predicate.

Declaration

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

Parameters

predicate

Predicate<BaseMenuItem>

The predicate used as a search criteria.

Returns

BaseMenuItem

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

Focus()

Focus the item.

Declaration

cs-api-definition
public override void Focus()

Overrides HtmlControl.Focus()

FocusFirstChild()

Moves focus to the first child of the item.

Declaration

cs-api-definition
public void FocusFirstChild()

FocusLastChild()

Moves focus to the last child of the item.

Declaration

cs-api-definition
public void FocusLastChild()

FocusNextItem()

Moves focus to the next item.

Declaration

cs-api-definition
public void FocusNextItem()

FocusPreviousItem()

Moves focus to the previous item.

Declaration

cs-api-definition
public void FocusPreviousItem()

Hide()

Hide the item.

Declaration

cs-api-definition
public void Hide()

InitializeMenuItemLocator()

Declaration

cs-api-definition
protected virtual void InitializeMenuItemLocator()

Navigate()

Navigate if NavigateUrl is set.

Declaration

cs-api-definition
public void Navigate()

Navigate(bool)

Declaration

cs-api-definition
public virtual void Navigate(bool ensureShouldNavigate)

Parameters

ensureShouldNavigate

bool

Open()

Opens the item.

Declaration

cs-api-definition
public void Open()

Select()

Selects the item.

Declaration

cs-api-definition
public void Select()

Show()

Show the item.

Declaration

cs-api-definition
public void Show()