ASPxClientMenuBase.GetItemByName(name) Method

Returns a menu item with the specified name.

Declaration

GetItemByName(
    name: string
): ASPxClientMenuItem

Parameters

Name Type Description
name string

The name of the menu item.

Returns

Type Description
ASPxClientMenuItem

The menu item with the specified name.

Remarks

Use the ASPxClientMenuBase.GetItemByName method to get a client menu item with the specified name.

This method searches the specified menu item among all items of the ASPxMenu control by the MenuItem.Name property (at all menu levels). It returns null if you pass an invalid name to the parameter.

You can use the ASPxClientMenuItem.GetItemByName method to access a menu item’s subitem with the specified name.

Note

This method returns an incorrect value if the EnableClientSideAPI property is set to false (default). Set this property to true to enable access to a control’s client-side object.

See Also