Skip to main content

ASPxClientNavBarItem Class

Represents a client-side equivalent of the navbar’s NavBarItem object.

Declaration

declare class ASPxClientNavBarItem

Remarks

The ASPxClientNavBarItem object represents a client navbar item that corresponds to a particular item in a group’s NavBarGroup.Items collection (and the ASPxNavBar.Items collection of the navbar control). An individual client navbar item can be accessed from either the navbar object level by using the ASPxClientNavBar.GetItemByName method or the level of the item’s parent group by using the ASPxClientNavBarGroup.GetItemByName or ASPxClientNavBarGroup.GetItem method.

The functionality provided by the ASPxClientNavBarItem object on the client side almost replicates the basic server-side functionality. Thus, you are allowed to obtain the main information on a navbar item (such as its ASPxClientNavBarItem.index and ASPxClientNavBarItem.name) and access its parent group (ASPxClientNavBarItem.group) and navbar object (ASPxClientNavBarItem.navBar) directly on the client-side by using specific properties exposed by the ASPxClientNavBarItem object and writing an appropriate JavaScript code.

See Also