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

ASPxClientNavBar.SetSelectedItem(item) Method

Selects the specified item within the navbar control on the client side.

Declaration

SetSelectedItem(item: ASPxClientNavBarItem): void

Parameters

Name Type Description
item ASPxClientNavBarItem

An ASPxClientNavBarItem object specifying the item to select.

Remarks

If the ASPxNavBar.AllowSelectItem property is set to true, end users are allowed to select items via mouse clicks. The navbar also provides the ability to select items on the client side via code. You can use the SetSelectedItem method for this purpose.

Note that only one item can be selected within a navbar control at the same time, and this item is displayed selected only if the item link mode in its group is set to the GroupItemLinkMode.ContentBounds value (which can be specified by either the navbar's ASPxNavBar.ItemLinkMode or the group's NavBarGroup.ItemLinkMode property).

To make none of the items selected within a navbar control, pass null as the method's parameter.

See Also