The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientMenuItem.GetItemByName(name) Method

Returns the current menu item's subitem specified by its name.

Declaration

GetItemByName(name: string): ASPxClientMenuItem

Parameters

Name Type Description
name string

A string value specifying the name of the menu item.

Returns

Type Description
ASPxClientMenuItem

An ASPxClientMenuItem object that represents the current menu item's subitem with the specified name.

Remarks

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

This method searches the specified menu item amongst all subitems of the current item (throughout all child submenus of the menu item). Note that if an invalid name is passed via the parameter, this method returns null.

In order to access a particular menu item specified by its name from the menu control level, the menu's ASPxClientMenuBase.GetItemByName method can be used.

See Also