[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]Demos and Sample Applications
 [Expand]Project Configuration
 [Expand]Grid View
 [Expand]Card View
 [Expand]Scheduler
  Spreadsheet
  Rich Text Editor
 [Expand]Charts
  Sparkline
 [Expand]Data Editors
 [Expand]Site Navigation
 [Expand]Site Layout
  File Manager
 [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]BootstrapClientFileManager Class
   [Expand]BootstrapClientFormLayout Class
   [Expand]BootstrapClientGridView Class
   [Expand]BootstrapClientHyperLink Class
   [Expand]BootstrapClientImage Class
   [Expand]BootstrapClientListBox Class
   [Expand]BootstrapClientListBoxItem Class
   [Expand]BootstrapClientMemo Class
   [Collapse]BootstrapClientMenu Class
     BootstrapClientMenu Members
     BootstrapClientMenu Constructor
    [Collapse]BootstrapClientMenu Methods
     [Expand]GetItem Method
     [Expand]GetItemByName Method
     [Expand]GetRootItem Method
     [Collapse]GetSelectedItem Method
       GetSelectedItem() Method
     [Expand]SetSelectedItem Method
   [Expand]BootstrapClientMenuItem Class
   [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]BootstrapClientRibbon Class
   [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]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

BootstrapClientMenu.GetSelectedItem() Method

Returns the selected item within the menu control.

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

Expanded Syntax

Return value

Type: BootstrapClientMenuItem
A BootstrapClientMenuItem object that represents the selected menu item.

Expanded Remarks

If the DevExpress.Web.ASPxMenuBase.AllowSelectItem property is set to true, end users are allowed to select menu items via mouse clicks. The selected menu item can be obtained on the client side by using the GetSelectedItem method.

If none of the items is selected within a menu control or selecting is prohibited, the GetSelectedItem method returns null.

In order to select a specific item on the client side, use the menu's SetSelectedItem method.

Expanded See Also

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