Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Collapse]ASP.NET Bootstrap Controls
  ASP.NET Bootstrap Controls - Overview
 [Expand]Getting Started
 [Expand]Grid View
 [Expand]Card View
 [Expand]Scheduler
 [Expand]Charts
  Sparkline
 [Expand]Data Editors
 [Expand]Site Navigation
 [Expand]Site Layout
 [Expand]Redistribution and Deployment
 [Collapse]API Reference
  [Expand]DevExpress.Web.Bootstrap
  [Collapse]DevExpress.Web.Bootstrap.Scripts
   [Expand]BootstrapClientAccordion Class
   [Expand]BootstrapClientAccordionGroup Class
   [Expand]BootstrapClientAccordionGroupCancelEventArgs Class
    BootstrapClientAccordionGroupCancelEventHandler Delegate
   [Expand]BootstrapClientAccordionGroupClickEventArgs Class
    BootstrapClientAccordionGroupClickEventHandler Delegate
   [Expand]BootstrapClientAccordionGroupEventArgs Class
    BootstrapClientAccordionGroupEventHandler Delegate
   [Expand]BootstrapClientAccordionItem Class
   [Expand]BootstrapClientAccordionItemEventArgs Class
    BootstrapClientAccordionItemEventHandler Delegate
   [Expand]BootstrapClientBinaryImage Class
   [Expand]BootstrapClientButton Class
   [Expand]BootstrapClientButtonEdit Class
   [Expand]BootstrapClientCalendar Class
   [Expand]BootstrapClientCallbackPanel Class
   [Expand]BootstrapClientCardView Class
   [Expand]BootstrapClientChart Class
   [Expand]BootstrapClientChartBase Class
    BootstrapClientChartBaseDoneEventHandler Delegate
    BootstrapClientChartBaseLegendClickEventHandler Delegate
    BootstrapClientChartBasePointClickEventHandler Delegate
    BootstrapClientChartBasePointHoverChangedEventHandler Delegate
    BootstrapClientChartBasePointSelectionChangedEventHandler Delegate
    BootstrapClientChartBaseTooltipHiddenEventHandler Delegate
    BootstrapClientChartBaseTooltipShownEventHandler Delegate
   [Expand]BootstrapClientChartZoomEndEventArgs Class
    BootstrapClientChartZoomEndEventHandler Delegate
    BootstrapClientChartZoomStartEventHandler Delegate
   [Expand]BootstrapClientCheckBox Class
   [Expand]BootstrapClientCheckBoxList Class
   [Expand]BootstrapClientComboBox Class
    BootstrapClientCoordinateSystemChartArgumentAxisClickEventHandler Delegate
    BootstrapClientCoordinateSystemChartSeriesClickEventHandler Delegate
    BootstrapClientCoordinateSystemChartSeriesHoverChangedEventHandler Delegate
    BootstrapClientCoordinateSystemChartSeriesSelectionChangedEventHandler Delegate
   [Expand]BootstrapClientDateEdit Class
   [Expand]BootstrapClientDropDownEdit Class
   [Expand]BootstrapClientFormLayout Class
   [Expand]BootstrapClientGridView Class
   [Expand]BootstrapClientHyperLink Class
   [Expand]BootstrapClientImage Class
   [Expand]BootstrapClientListBox Class
   [Expand]BootstrapClientListBoxItem Class
   [Expand]BootstrapClientMemo Class
   [Expand]BootstrapClientMenu Class
   [Collapse]BootstrapClientMenuItem Class
     BootstrapClientMenuItem Members
     BootstrapClientMenuItem Constructor
    [Expand]BootstrapClientMenuItem Properties
    [Collapse]BootstrapClientMenuItem Methods
      GetBadgeIconCssClass Method
      GetBadgeText Method
      GetIconCssClass Method
      GetImageUrl Method
     [Collapse]GetItem Method
       GetItem(Int32) Method
     [Expand]GetItemByName Method
      SetBadgeIconCssClass Method
      SetBadgeText Method
      SetIconCssClass Method
      SetImageUrl Method
   [Expand]BootstrapClientMenuItemClickEventArgs Class
    BootstrapClientMenuItemClickEventHandler Delegate
   [Expand]BootstrapClientMenuItemEventArgs Class
    BootstrapClientMenuItemEventHandler Delegate
   [Expand]BootstrapClientMenuItemMouseEventArgs Class
    BootstrapClientMenuItemMouseEventHandler Delegate
   [Expand]BootstrapClientPageControl Class
   [Expand]BootstrapClientPager Class
   [Expand]BootstrapClientPieChart Class
   [Expand]BootstrapClientPolarChart Class
   [Expand]BootstrapClientPopupControl Class
   [Expand]BootstrapClientPopupMenu Class
   [Expand]BootstrapClientProgressBar Class
   [Expand]BootstrapClientRadioButton Class
   [Expand]BootstrapClientRadioButtonList Class
   [Expand]BootstrapClientRangeSelector Class
   [Expand]BootstrapClientRangeSelectorValueChangedEventArgs Class
    BootstrapClientRangeSelectorValueChangedEventHandler Delegate
   [Expand]BootstrapClientSparkline Class
    BootstrapClientSparklineOptionChangedEventHandler Delegate
    BootstrapClientSparklineTooltipHiddenEventHandler Delegate
    BootstrapClientSparklineTooltipShownEventHandler Delegate
   [Expand]BootstrapClientSpinEdit Class
   [Expand]BootstrapClientTab Class
   [Expand]BootstrapClientTabControl Class
   [Expand]BootstrapClientTabControlTabCancelEventArgs Class
    BootstrapClientTabControlTabCancelEventHandler Delegate
   [Expand]BootstrapClientTabControlTabClickEventArgs Class
    BootstrapClientTabControlTabClickEventHandler Delegate
   [Expand]BootstrapClientTabControlTabEventArgs Class
    BootstrapClientTabControlTabEventHandler Delegate
   [Expand]BootstrapClientTagBox Class
   [Expand]BootstrapClientTextBox Class
   [Expand]BootstrapClientTimeEdit Class
   [Expand]BootstrapClientToolbar Class
   [Expand]BootstrapClientTreeView Class
   [Expand]BootstrapClientTreeViewNode Class
   [Expand]BootstrapClientTreeViewNodeCancelEventArgs Class
    BootstrapClientTreeViewNodeCancelEventHandler Delegate
   [Expand]BootstrapClientTreeViewNodeClickEventArgs Class
    BootstrapClientTreeViewNodeClickEventHandler Delegate
   [Expand]BootstrapClientTreeViewNodeEventArgs Class
    BootstrapClientTreeViewNodeEventHandler Delegate
   [Expand]BootstrapClientTreeViewNodeProcessingModeEventArgs Class
    BootstrapClientTreeViewNodeProcessingModeEventHandler Delegate
   [Expand]BootstrapClientUploadControl Class
   [Expand]BootstrapClientUtils Class
   [Expand]BootstrapUIWidgetBase Class
    BootstrapUIWidgetDisposingEventHandler Delegate
    BootstrapUIWidgetDrawnEventHandler Delegate
   [Expand]BootstrapUIWidgetElementActionEventArgs Class
   [Expand]BootstrapUIWidgetElementClickEventArgs Class
   [Expand]BootstrapUIWidgetErrorEventArgs Class
    BootstrapUIWidgetErrorEventHandler Delegate
   [Expand]BootstrapUIWidgetEventArgsBase Class
    BootstrapUIWidgetExportedEventHandler Delegate
   [Expand]BootstrapUIWidgetExportEventArgs Class
    BootstrapUIWidgetExportingEventHandler Delegate
    BootstrapUIWidgetFileSavingEventHandler Delegate
    BootstrapUIWidgetInitializedEventHandler Delegate
   [Expand]BootstrapUIWidgetOptionChangedEventArgs Class
    BootstrapUIWidgetOptionChangedEventHandler Delegate
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

BootstrapClientMenuItem.GetItem(Int32) Method

Returns the current menu item's immediate subitem specified by its index.

Namespace:DevExpress.Web.Bootstrap.Scripts
Assembly:DevExpress.Web.Bootstrap.v18.1.Scripts.dll

Expanded Syntax

Parameters

index
Type: Int32
An integer value specifying the zero-based index of the submenu item to be retrieved.

Return value

Type: BootstrapClientMenuItem
A BootstrapClientMenuItem object representing the menu item's immediate subitem located at the specified index within the menu item's BootstrapMenuItem.Items collection.

Expanded Remarks

A menu control's client-side functionality enables you to programmatically access and manipulate a particular menu item's subitems on the client side. Use the GetItem method to get the client-side menu item object at the specified index in the list of the current menu item's immediate child items. The menu items of the immediate submenu level are maintained by the menu item's BootstrapMenuItem.Items collection. This method can be used together with the DevExpress.Web.Scripts.ASPxClientMenuItem.GetItemCount method when iterating through the list of the immediate submenu items.

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

In order to access menu items further down the menu tree, you can use the GetItem property of a subsequent menu item. The menu items of the root menu level can be accessed via the menu's BootstrapClientMenu.GetItem method.

Expanded See Also

Is this topic helpful?​​​​​​​