BaseMenuItem
Represents the BaseMenuItem class.
Namespace:Telerik.WebAii.Controls.Html
Assembly:Telerik.WebAii.Controls.Html.dll
Syntax:
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
Initializes a new instance of the BaseMenuItem class.
Initializes a new instance of the BaseMenuItem class.
Declaration
public BaseMenuItem(Element element)
Parameters
Element
Get the Client side locator used in most of the properties.
Returns 'null' for item separators.
Get or set whether the menu item is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
bool
Get or set whether this item is focused.
Declaration
public bool Focused { get; set; }
Property Value
bool
Get the index of the item.
Declaration
public int Index { get; }
Property Value
int
The type of the menu item.
Declaration
public MenuItemType ItemType { get; }
Property Value
MenuItemType
Get or set the value for this item.
Declaration
public string ItemValue { get; set; }
Property Value
string
Returns the list of child items of this menu item.
Declaration
public IList<BaseMenuItem> Items { get; }
Property Value
IList<BaseMenuItem>
Get the level of the item.
Declaration
public int Level { get; }
Property Value
int
Get the FindParam that defines the pattern for a menu item.
Get or set the navigate url of this item.
Declaration
public string NavigateUrl { get; set; }
Property Value
string
Get whether this item is opened.
Declaration
public bool Opened { get; }
Property Value
bool
Get whether the menu item is selected.
Declaration
public virtual bool Selected { get; }
Property Value
bool
Check whether the item should navigate.
Declaration
public bool ShouldNavigate { get; }
Property Value
bool
Get or set the text of this item.
Declaration
public string Text { get; set; }
Property Value
string
Get whether the item is visible.
Declaration
public bool Visible { get; }
Property Value
bool
Assign the DOM element to be the BaseMenuItem control.
Click the item or navigate if the NavigateUrl is set.
Click the item or navigate if the NavigateUrl is set.
Find item by given predicate.
Declaration
public BaseMenuItem FindItem(Predicate<BaseMenuItem> predicate)
Parameters
Predicate<BaseMenuItem>
The predicate used as a search criteria.
Returns
BaseMenuItem
The item found or 'null' if no item matches the given search criteria.
Moves focus to the first child of the item.
Declaration
public void FocusFirstChild()
Moves focus to the last child of the item.
Declaration
public void FocusLastChild()
Moves focus to the next item.
Declaration
public void FocusNextItem()
Moves focus to the previous item.
Declaration
public void FocusPreviousItem()
Declaration
protected virtual void InitializeMenuItemLocator()
Navigate if NavigateUrl is set.
Declaration
public virtual void Navigate(bool ensureShouldNavigate)
Parameters
bool