ASPxClientNavBar.GetSelectedItem Method
Returns the selected item within the navbar control.
Declaration
GetSelectedItem(): ASPxClientNavBarItem
Returns
Type | Description |
---|---|
ASPxClientNavBarItem | An ASPxClientNavBarItem object that represents the selected item. |
Remarks
If the ASPxNavBar.AllowSelectItem property is set to true
, end users are allowed to select items via mouse clicks. The selected item can be obtained on the client side by using the GetSelectedItem method,
If none of the items is selected within a navbar control or selecting is prohibited, the GetSelectedItem method returns null.
In order to select a specific item on the client side, use the navbar’s ASPxClientNavBar.SetSelectedItem method.
See Also