Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
All docs
V26.2
  • Blazor Sidebar

    • 2 minutes to read

    The DevExpress Sidebar component for Blazor (DxSideBar) displays a vertical icon-based navigation strip. Use the Sidebar to switch between app sections and navigate to pages.

    Read Tutorial: Explore Features

    Blazor Sidebar Component - Overview

    Features

    Items and Groups

    Add DxSideBarItem objects to the Sidebar markup and specify item text and icons. Set the BeginGroup property to true to display a separator before an item. To display an item at the bottom of the Sidebar, set the Alignment property to Bottom.

    Read Tutorial: Items

    Specify the NavigateUrl property to navigate to a page when a user clicks an item. The Sidebar can automatically select the item that navigates to the current page. Use the UrlMatchMode property to specify how the Sidebar compares item URLs with the current browser URL.

    Read Tutorial: Navigate to URLs

    Selection

    The Sidebar selects an item when a user clicks the item, when the item URL matches the current page, and when you call the SelectItem(Func<ISideBarItemInfo, Boolean>) method. Handle the SelectionChanged event to react to selection changes.

    Read Tutorial: Selection

    Adaptivity

    If the Sidebar height is insufficient to display all items, the component moves items to the overflow menu. Use the AdaptivePriority property to specify the order in which the Sidebar hides items.

    Read Tutorial: Adaptivity

    Two-Level Navigation

    Combine the Sidebar with Drawer and TreeView components to build two-level navigation. The Sidebar lists app sections, and the drawer panel displays pages of the selected section.

    DevExpress Blazor Sidebar - Two-Level Navigation