RadMenu for ASP.NET

The RadMenuItem client object Send comments on this topic.
See Also
Telerik RadMenu client-side > The RadMenuItem client object

Glossary Item Box

Methods

Name Parameters Return Type Description
Disable none none

Disables the item.

Example: Copy Code
var menuItem = RadMenu1.FindItemByText("Paris");
menuItem.Disable();
Enable none none

If the item is disabled, enables the item.

Example: Copy Code
var menuItem = RadMenu1.FindItemByText("Paris");
menuItem.Enable();
Focus none none

Focuses the item.

Example: Copy Code
var menuItem = RadMenu1.FindItemByText("Paris");
menuItem.Focus();
Blur none none

Removes the focus from the item.

Example: Copy Code
var menuItem = RadMenu1.FindItemByText("Paris");
menuItem.Blur();
FocusPreviousItem none none

Moves the focus back to the previous item. 

FocusNextItem none none

Moves the focus forward to the next item.

FocusFirstChild none none

Moves the focus over to the first child of the item.

FocusLastChild none none

Moves the focus over to the last child of the item.

GetNextItem none RadMenuItem Returns the next sibling of the item. If the item is last, returns null.
GetPreviousItem none RadMenuItem Returns the previous sibling of the item. If the item is firs, returns null.
GetAttribute (sting attributeName)  string Returns the value of the specified custom attribute. If there is no such attribute, null is returned.  
SetAttribute (sting attributeName, string value)  none Sets the value of the specified custom attribute.
SetImageOverUrl (string imageUrl) none Sets the URL of the image displayed when the mouse if over the item.
SetImageUrl (string imageUrl) none Sets the URL of the image.
Open none none

Expands the item and reveals its children, if any.

Close none none

Collapses the item, if expanded.

SetValue string value none Sets the value of the item.
SetText string text none Sets the text of the item.
Show none none Makes the item visible.
Hide none none Makes the item invisible.
IsVisible none bool Returns true if the items is visible or false if the item is invisible.

Properties

Name Type Description
ID String Gets the ClientID of the item.
DomElement HTML Element Gets the root DOM element of the item (LI).
Items Array Gets the child items of the current item.
FocusedItem RadMenuItem Gets the focused child item. Null if no child item is focused.
OpenedItem RadMenuItem Gets the opened child item. Null if no child item is opened.
IsSeparator boolean If the item is separator (severside property IsSeparator = true)
Parent RadMenuItem / RadMenu

Gets an instance of the parent object: either RadMenuItem, or RadMenu if the item is a root item.

LinkElement HTML Element Gets the anchor  DOM element of the item (A).
Level Integer Gets the level of the item. Root level items are first level.
ImageElement HTML Element Gets the image DOM element of the item. If the server side ImageUrl property is not set, will return null.
Menu RadMenu Gets an instance of the menu control containing the item.
Enabled Boolean Gets the enabled state of the item.
Index Integer Gets the zero based index of the item inside the parent Items collection.
GlobalIndex Integer Gets the zero based index of the menu item inside the RadMenu.AllItems collection.
Text String Gets the text of the item.
TextElement HTML Element Gets the text of DOM element of the item (SPAN).
Value String Gets the value of the item.
Focused Boolean

Determines whether the menu item is focused.

See Also