ASPxClientMenuBase.GetItemByName(name) Method

Returns a menu item specified by its name.


GetItemByName(name: string): ASPxClientMenuItem


Name Type Description
name string

A string value specifying the name of the menu item.


Type Description

An ASPxClientMenuItem object that represents the menu item with the specified name.


A menu control's client-side functionality allows individual menu items to be accessed programmatically. The GetItemByName method gets a client menu item object specified by its name. A menu item's name is defined by the MenuItem.Name property.

This method searches the specified menu item amongst all items contained by the menu control (throughout all menu levels). Note that if an invalid name is passed via the parameter, this method returns null.

In order to access a particular menu item's subitem specified by its name, the menu item's ASPxClientMenuItem.GetItemByName method can be used.

See Also