Skip to main content

ASPxClientNavBarGroup.GetItem(index) Method

Returns the group’s item specified by its index.

Declaration

GetItem(
    index: number
): ASPxClientNavBarItem

Parameters

Name Type Description
index number

The index of the item to be retrieved.

Returns

Type Description
ASPxClientNavBarItem

An ASPxClientNavBarItem object representing the item located at the specified index within the current group.

Remarks

The navbar’s client-side functionality enables you to access and manipulate group items on the client. Use the GetItem method to get the client-side item object at the specified index in a group using array notation. This method can be used together with the ASPxClientNavBarGroup.GetItemCount method when iterating through the list of a group’s items.

Note that the index parameter is zero-based and its upper available value is specified by the ASPxClientNavBarGroup.GetItemCount value decremented by one. If you pass an invalid index via the parameter, the method returns null.

See Also