Skip to content
Lumen UI for ASP.NET MVC
Ctrl K

Grids 2

  • DataGrid Tabular data with paging, filtering, editing and export.
    17 sections
    • Data Grid
      • Overview
      • Live Data
      • Default Functionalities
      • Adaptive Layout
      • Loading Animation
      • Empty Record Template
      • Integrate Chart in Grid
    • Product Use Case
      • FIFA Statistics
      • Product Catalog
    • DataBinding
      • List Binding
      • Remote Data
      • DataTable Binding
      • URL Adaptor
      • Flexible Data
      • ExpandoObject Binding
      • DynamicObject Binding
    • Columns
      • Column Template
      • Header Template
      • Stacked Header
      • Foreign Key Column
      • Reorder
      • AutoFit and Resizing
      • Column Menu
      • AutoWrap Column Cells
      • Column Chooser
      • Show or Hide Column
      • Column Spanning
    • Rows
      • Row Template
      • Detail Template
      • Drag and Drop
      • Drag and Drop within Grid
      • Row Hover
      • Row Height
      • Row Spanning
      • Row Spanning (API)
      • Row Number
    • Editing
      • Inline Editing
      • Dialog Editing
      • Dialog Template
      • Batch Editing
      • Cell Editing
      • Formula Cell
      • Command Column
    • Sorting
      • Multi Sorting
      • Sorting (API)
    • Filtering
      • Default Filtering
      • Filter Bar Template
      • Filter Menu
      • Advanced Filtering
      • Search
    • Grouping
      • Grouping
    • Aggregates
      • Default Aggregate
      • Group and Caption Aggregate
    • Selection
      • Default Selection
      • Selection (API)
      • Checkbox Selection
      • Conditional Row Selection
    • Scrolling
      • Default Scrolling
      • Sticky Header
      • Frozen Rows and Columns
      • Frozen (API)
      • Pinned Rows
    • Performance
      • DOM Virtualization
      • Virtual Scrolling
      • Infinite Scrolling
      • Pagination
    • Lazy Load Grouping
      • Grouping with Paging
      • Grouping with Infinite Scrolling
      • Grouping with Virtual Scrolling
    • Paging
      • Paging (API)
    • Exporting
      • Default Exporting
      • Advanced Exporting
      • Hierarchy Exporting
      • Detail Template Exporting
      • Multiple Exporting
      • Print
    • Miscellaneous
      • GridLines
      • Context Menu
      • Clipboard
      • Events
      • Keyboard Navigation
      • RTL
  • Tree Grid Tabular data with paging, filtering, editing and export.
    15 sections
    • Tree Grid
      • Overview
      • Live Data
      • Default Functionalities
      • Adaptive Layout
      • Loading Animation
      • Empty Record Template
    • Product Use Case
      • Employee Management
      • Restaurant Menu
    • Data Binding
      • Local Data
      • Remote Data
      • Self Reference Data
    • Columns
      • Column Template
      • Header Template
      • Column Formatting
      • Cell Alignment
      • Reorder
      • Resizing
      • Stacked Header
      • Column Menu
      • Auto Wrap Column Cells
      • Column Chooser
      • Show or Hide Column
      • Checkbox Column
    • Rows
      • Row Template
      • Detail Template
      • Drag and Drop
      • Drag and Drop within Tree Grid
      • Row Hover
      • Row Height
      • Row Spanning (API)
    • Editing
      • Inline Editing
      • Dialog Editing
      • Batch Editing
      • Cell Editing
      • Command Column
      • Cell Edit Type
      • Edit Template
      • Lock Row
    • Sorting
      • Multi Sorting
      • Sorting API
    • Filtering
      • Default Filtering
      • Menu Filter
      • Search
    • Paging
      • Paging Dropdown
      • Paging API
    • Scrolling
      • Default Scrolling
      • Sticky Header
      • Frozen Columns
      • Freeze Direction
      • DOM Virtualization
      • Virtual Scrolling
      • Load Child On Demand
      • Infinite Scrolling
    • Aggregates
      • Default Aggregate
      • Custom Aggregate
    • Selection
      • Default Selection
      • Selection API
      • Checkbox Selection
    • Exporting
      • Default Exporting
      • Print
    • Context Menu
      • Default Context Menu
      • Custom Context Menu
    • Miscellaneous
      • Gridlines
      • Clipboard
      • Conditional Formatting
      • Toolbar Template
      • Events
      • Keyboard Navigation

Data Visualization 3

  • Charts Charts, boards and diagrams.
    17 sections
    • Charts
      • Overview
    • Line Charts
      • Line
      • Spline
      • Step Line
      • Dashed Line
      • Custom Animation
      • Inversed Spline
      • Line Zone
      • Multi Colored Line
      • Stacked Line
      • 100% Stacked Line
    • Area Charts
      • Area
      • Spline Area
      • Step Area
      • Step Without Riser
      • Range Step Area
      • Range Area
      • Spline Range Area
      • Stacked Area
      • Stacked Step Area
      • 100% Stacked Area
      • Area Empty Points
      • Area Negative Points
      • Area Zone
    • Bar Charts
      • Column
      • Grouped Column
      • Rounded Column
      • Back To Back Column
      • Column Drilldown
      • Range Column
      • Inversed RangeColumn
      • Cylindrical Column
      • Bar
      • Bar with Gradient
      • Stacked Column
      • 100% Stacked Column
      • Stacked Smart Labels
      • Stacked Bar
      • 100% Stacked Bar
      • Negative Stack
    • Scatter and Bubble
      • Scatter Plot
      • Bubble
    • Other Types
      • Waterfall
      • Horizontal Waterfall
      • Histogram
      • Box and Whisker
      • Error Bar
      • Trendlines
      • Multi-Series Chart
      • Pareto Chart
    • Stock Charts
      • Hilo
      • Hilo Open Close
      • Candle Stick
    • Technical Indicators
      • Accumulation Distribution
      • ATR
      • Bollinger
      • EMA
      • MACD
      • Momentum
      • RSI
      • SMA
      • Stochastic
      • TMA
    • Performance
      • Benchmark
    • Real-time Charts
      • Spline updating each second
      • Live stock data
      • Update data source
      • Click to add a point
      • Live Data Sorting
    • Accumulation Charts
      • Pie
      • Pie with Various Radius
      • Donut
      • Donut With Gradient
      • Nested Donut
      • Pyramid
      • Funnel
      • Pie with Legend
      • Pie with Legend Template
      • Semi Pie
      • Smart Labels
      • Drilldown
      • Grouping
      • Empty Points
      • Rounded Corner
      • Pie with Patterns
      • Live Update
    • Polar Radar
      • Line
      • Spline
      • Area
      • Stacked Area
      • Scatter
      • Column
      • WindRose
      • RangeColumn
    • Data Binding
      • Local Data
      • Remote Data
      • Lazy Loading
    • Chart Axes
      • Numeric Axis
      • DateTime Axis
      • DateTime Category Axis
      • Category Axis
      • Indexed Category Axis
      • Log Axis
      • Multiple Axis
      • Inversed Axis
      • Stripline
      • Strip Line Recurrence
      • Smart Axis Labels
      • Axis Label Template
      • MultiLevel Labels
      • Axes Crossing
      • Multi Axis Combination
    • Chart Customization
      • Sorting
      • Marker Chart
      • RTL
      • Annotation
      • Synchronized Charts
      • DataLabel Template
      • Vertical Charts
      • Empty Point
      • Legend Template
      • No Data Template
      • Tooltip Template
      • Range Color Mapping
      • Animation
    • Print and Export
      • Print
      • Export
    • User Interaction
      • Selection
      • Range Selection
      • Keyboard Navigation
      • Crosshair
      • Trackball
      • Zooming and Panning
      • Pagination
      • Data Editing
  • Kanban Charts, boards and diagrams.
  • Diagram Charts, boards and diagrams.

Calendars 5

  • Calendar Date and time pickers and the calendar.
    1 section
    • Calendar
      • Default Functionalities
      • Disabled Dates
      • Special Dates
      • Multi Selection
      • Date Range
      • Month Picker
      • Islamic Calendar
      • Globalization
  • DatePicker Date and time pickers and the calendar.
    1 section
    • DatePicker
      • Default Functionalities
      • Disabled Dates
      • Special Dates
      • Date Range
      • Month Picker
      • Mask Support
      • Date Formats
      • Globalization
      • DatePickerFor
  • DateRangePicker Date and time pickers and the calendar.
    1 section
    • DateRangePicker
      • Default Functionalities
      • Date Range
      • Day Span
      • Format
      • Month Range Picker
      • Preset Ranges
      • Globalization
      • Date Range Picker For
  • DateTime Picker Date and time pickers and the calendar.
    1 section
    • DateTimePicker
      • Default Functionalities
      • Date Range
      • Disabled Dates
      • Format
      • Mask Support
      • Special Dates
      • Globalization
      • DateTimePickerFor
  • TimePicker Date and time pickers and the calendar.
    1 section
    • TimePicker
      • Default Functionalities
      • Mask Support
      • Time Duration
      • Time Format
      • TimePickerFor
      • Time Range

Buttons 3

  • Chips Actions, toggles and choices.
    1 section
    • Chips
      • Default
      • API
      • drag and drop functionalities
  • Button Actions, toggles and choices.
    2 sections
    • Button
      • Default Functionalities
      • Button Group
      • Checkbox
      • Radio Button
      • Dropdown Button
      • Split Button
      • Switch
      • Progress Button
    • For Extensions
      • Checkbox
      • Radio Button
      • Switch
  • Floating Action Button Actions, toggles and choices.
    1 section
    • Floating Action Button
      • Default Functionalities
      • Overview
      • Positions
      • Appearances

Dropdowns 8

  • AutoComplete Pick one or many values from a list.
    1 section
    • AutoComplete
      • Default Functionalities
      • Grouping and Icon
      • Data Binding
      • Object Value Binding
      • Disabled Items
      • Template
      • Popup Resize
      • Highlight
      • Custom Filtering
      • Diacritics Filtering
      • AutoCompleteFor
      • Virtualization
  • ComboBox Pick one or many values from a list.
    1 section
    • ComboBox
      • Default Functionalities
      • Grouping and Icon
      • Data Binding
      • Object Value Binding
      • Disabled Items
      • CustomValue
      • Template
      • Popup Resize
      • Filtering
      • Cascading
      • Diacritics Filtering
      • ComboBoxFor
      • Virtualization
  • Dropdown List Pick one or many values from a list.
    1 section
    • Dropdown List
      • Default Functionalities
      • Grouping and Icon
      • Data Binding
      • Object Value Binding
      • Disabled Items
      • Template
      • Popup Resize
      • Filtering
      • Cascading
      • Inline
      • Diacritics Filtering
      • DropDownListFor
      • Virtualization
  • Dropdown Tree Pick one or many values from a list.
    2 sections
    • Dropdown Tree
      • Default Functionalities
      • Icons and Images
      • Checkbox
      • Multiple Selection
      • Template
      • Custom Template
      • Filtering
    • Data Binding
      • Local Data
      • Remote Data
  • MultiSelect Dropdown Pick one or many values from a list.
    1 section
    • MultiSelect Dropdown
      • Default Functionalities
      • Data Binding
      • Object Value Binding
      • Disabled Items
      • Grouping
      • Template
      • Popup Resize
      • Filtering
      • Custom Values
      • Chip Customization
      • Diacritics Filtering
      • Virtualization
      • CheckBox
      • Grouping with CheckBox
      • Selection Limit
      • MultiSelectFor
  • ListBox Pick one or many values from a list.
    1 section
    • List Box
      • Default Functionalities
      • Dual ListBox
      • Drag And Drop
      • Checkbox
      • Template
      • API
  • Mention Pick one or many values from a list.
    1 section
    • Mention
      • Default Functionalities
      • Multiple List
      • Template
      • Disabled Items
  • MultiColumn ComboBox Pick one or many values from a list.
    1 section
    • MultiColumn ComboBox
      • Default Functionalities
      • Remote Data
      • Grouping
      • Filtering
      • Virtualization
      • Sorting
      • RTL
      • Keyboard Navigation
      • Template

Navigation 9

  • Accordion Ways around an application.
    1 section
    • Accordion
      • Default Functionalities
      • Keyboard Interaction
      • Icons
      • RTL
      • Ajax Content
  • Breadcrumb Ways around an application.
    1 section
    • Breadcrumb
      • Default Functionalities
      • Overflow Modes
      • Keyboard Navigation
      • Bind to Location
      • Events
      • Address Bar
      • Template and Customization
  • Context Menu Ways around an application.
    1 section
    • Context Menu
      • Default Functionalities
      • Template
  • File Manager Ways around an application.
    3 sections
    • File Manager
      • Overview
      • Flat Data
      • Custom Thumbnails
      • API
      • Drag and Drop
      • Directory upload
      • Sequential Upload
      • Virtualization
      • Template
    • Use Case
      • File Upload
      • Access Control
    • Cloud Service Providers
      • Azure Blob Provider
  • Sidebar Ways around an application.
    1 section
    • Sidebar
      • Default Functionalities
      • API
      • Dock
      • Panel with Responsive
      • Sidebar with ListView
      • Sidebar with Menu
  • Tabs Ways around an application.
    1 section
    • Tabs
      • Default Functionalities
      • Orientation
      • Responsive Modes
      • Keyboard Interaction
      • RTL
      • Wizard
      • Drag and Drop
  • Toolbar Ways around an application.
    1 section
    • Toolbar
      • Default Functionalities
      • Alignment
      • Popup
      • Keyboard Interaction
      • RTL
      • Template
  • TreeView Ways around an application.
    1 section
    • TreeView
      • Default Functionalities
      • CheckBox
      • Multiple Selection
      • Node Editing
      • Icons and Images
      • Local Data
      • Template
      • Drag and Drop
      • Remote Data
      • Virtualization
  • Stepper Ways around an application.
    1 section
    • Stepper
      • Default Functionalities
      • Linear
      • Orientation
      • Validation

Inputs 9

  • TextBox Form fields with labels, formats and validation.
    1 section
    • Textbox
      • Default Functionalities
      • Adornments
      • Multiline TextBox
      • TextboxFor
  • TextArea Form fields with labels, formats and validation.
    1 section
    • TextArea
      • Default Functionalities
      • Adornments
      • API
      • Floating Label
      • Resize
      • TextAreaFor
  • Input Mask Form fields with labels, formats and validation.
    1 section
    • Input Mask
      • Default Functionalities
      • Adornments
      • Custom Mask
      • Formats
  • Numeric TextBox Form fields with labels, formats and validation.
    1 section
    • Numeric Textbox
      • Default Functionalities
      • Adornments
      • Custom Format
      • Range Validation
      • Restrict Decimals
  • Color Picker Form fields with labels, formats and validation.
    1 section
    • Color Picker
      • Default Functionalities
      • Inline Mode
      • Custom Palettes
      • API
      • ColorPickerFor
  • File Upload Form fields with labels, formats and validation.
    1 section
    • File Upload
      • Default Functionalities
      • Chunk Upload
      • Template
      • Preload Files
      • File Validation
      • Image Preview
      • Form Support
      • Custom Drop Area
  • Range Slider Form fields with labels, formats and validation.
    3 sections
    • Range Slider
      • Default Functionalities
      • Ticks
      • Tooltip
      • Vertical Orientation
      • Limits
      • Formatting
      • API
      • Events
    • Customization
      • Thumb
      • Bar
      • Ticks
      • Tooltip
    • Use Case
      • Cloud Pricing
  • Signature Form fields with labels, formats and validation.
    1 section
    • Signature
      • Default Functionalities
      • Toolbar
  • OTP Input Form fields with labels, formats and validation.
    1 section
    • OTP Input
      • Default Functionalities
      • API

Layout 8

  • Avatar Containers, overlays and arrangement.
    2 sections
    • Avatar
      • Default
      • Types
    • Integration
      • Badge
      • Card
      • Listview
  • Card Containers, overlays and arrangement.
    1 section
    • Card
      • Basic Card
      • Vertical Card
      • Horizontal Card
      • Swipeable Card
      • Flip Card
      • Reveal Card
      • Tile View
  • Dialog Containers, overlays and arrangement.
    1 section
    • Dialog
      • Default Functionalities
      • Custom Dialogs
      • Modal
      • Template
      • Ajax Content
      • Draggable
      • Resizable
      • Positioning
      • Animation
      • Multiple Dialogs
      • RTL
      • Components inside Dialog
  • Predefined Dialogs Containers, overlays and arrangement.
    1 section
    • Predefined Dialogs
      • Default Functionalities
      • Customization
      • Animation
  • ListView Containers, overlays and arrangement.
    3 sections
    • ListView
      • Default Functionalities
      • Remote Data
      • Checklist
      • Nested List
      • Virtualization
      • List Scrolling
    • Customization
      • Templates
      • Group Template
    • Use Case
      • Call History
  • Tooltip Containers, overlays and arrangement.
    1 section
    • Tooltip
      • Default Functionalities
      • Template
      • Ajax Content
      • Smart Positioning
      • Tooltip Menu
      • HTML Template
      • API
  • Splitter Containers, overlays and arrangement.
    2 sections
    • Splitter
      • Default Functionalities
      • Expand and Collapse
    • Use Case
      • Accordion Navigation Menu
      • Details View
      • Outlook-style Layout
      • Code Editor Layout
  • Timeline Containers, overlays and arrangement.
    1 section
    • Timeline
      • Default Functionalities
      • API
      • Template

Notifications 5

  • Message Feedback and progress.
    1 section
    • Message
      • Default Functionalities
      • Variants
      • Icons
      • Customization
      • Template
  • Badge Feedback and progress.
    2 sections
    • Badge
      • Default
      • Types
      • Notification
    • Integration
      • Listview
      • Accordion
      • Toolbar
  • Toast Feedback and progress.
    1 section
    • Toast
      • Default Functionalities
      • Types
      • Positions
      • API
      • Template
  • Progress Bar Feedback and progress.
    1 section
    • ProgressBar
      • Linear
      • Circular
      • Active
      • Loading
      • Password Strength
      • Size
      • Segment
      • Custom Contents
      • Labels
      • Tooltip
      • Radius
      • Semi Circular
      • Stripes
      • Progress Segment
  • Skeleton Feedback and progress.
    1 section
    • Skeleton
      • Default Functionalities
      • Animation

Forms 2

  • Query Builder Build, render and validate forms.
    2 sections
    • Query Builder
      • Default Functionalities
      • Complex Databinding
      • Mongo and SQL Query
      • Lock Group/Rule
      • Clone Group/Rule
      • Drag and Drop
      • Separate Connector
      • Integration With Data Grid
    • Template
      • Value Template
      • Rule Template
      • Header Template
  • Form Renderer Build, render and validate forms.
    1 section
    • Form Renderer
      • Default Functionalities
      • Custom Components

Editors 2

  • Markdown Editor Write and format text.
  • Rich Text Editor Write and format text.

No component matches your search.

Home Component directory
Sidebar
  • Default Functionalities
  • API
  • Dock
  • Panel with Responsive
  • Sidebar with ListView
  • Sidebar with Menu
Sidebar› Responsive Panel

Example of Responsive Panel in ASP.NET MVC Sidebar Control

The Sidebar sample demonstrates how the Sidebar will act in responsive case. Click on the hamburger menu icon to expand/collapse the sidebar.

Navigation Pane

TABLE OF CONTENTS

  • Installation
  • Deployment
  • Quick Start
  • Components
    • Calendar
    • DatePicker
    • DateTimePicker
    • DateRangePicker
    • TimePicker
    • SideBar
  • API Reference
    • Calendar
    • DatePicker
    • DateTimePicker
    • DateRangePicker
    • TimePicker
    • SideBar
  • Browser Compatibility
  • Upgrade Packages
  • Release Notes
  • FAQ
  • License
Responsive Sidebar with Treeview

This is a graphical aid for visualising and categorising the site, in the style of an expandable and collapsable treeview component. It auto-expands to display the node(s), if any, corresponding to the currently viewed title, highlighting that node(s) and its ancestors. Load-on-demand when expanding nodes is available where supported (most graphical browsers), falling back to a full-page reload. MediaWiki-supported caching, aside from squid, has been considered so that unnecessary re-downloads of content are avoided where possible. The complete expanded/collapsed state of the treeview persists across page views in most situations.


@Html.UiToolbar(new UiToolbarOptions { Id = "resToolbar", Items = (List<UiToolbarItem>)ViewData["ResToolItems"], OnClick = "toggleSidebar" })

@Html.UiTextBox("resSearch", null, new UiTextBoxOptions { Placeholder = "Search..." })

@Html.UiTreeView(new UiTreeViewOptions { Id = "mainTree", CssClass = "main-treeview", ExpandOn = UiTreeExpandOn.Click, Nodes = (List<UiTreeNode>)ViewData["TreeData"] })
<style>
.sb-toolbar .ui-toolbar { border: 1px solid var(--ui-border); border-bottom: 0; border-radius: 4px 4px 0 0; }
.sb-frame { position: relative; display: flex; height: 380px; overflow: hidden; border: 1px solid var(--ui-border); border-radius: 0 0 4px 4px; background: var(--ui-surface); }
.sb-frame.sb-alone { border-radius: 4px; }
.sb-frame > .ui-sidebar { z-index: 20; }
.sb-main { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 15px; box-sizing: border-box; font-size: 14px; }
.sb-side { padding: 15px; }
.e-folder-name { font-size: 16px; font-weight: 600; padding-left: 6px; }
.e-user-name { font-size: 14px; padding-right: 6px; }
.e-user-avatar { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ui-accent); color: var(--ui-on-accent); font-weight: 600; }
.sb-mail, .sb-list { list-style: none; margin: 0; padding: 0; }
.sb-mail li { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--ui-border); }
.sb-mail .e-avatar { grid-row: span 3; align-self: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ui-row-hover-bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.sb-mail .e-list-item-header { font-weight: 600; }
.sb-mail .e-list-content { color: var(--ui-text); }
.sb-mail .e-list-text { color: var(--ui-muted); font-size: 12px; }
.sb-heading { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.sb-paragraph { margin: 0 0 16px; text-align: justify; }
.sb-list li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sb-list li button:hover { background: var(--ui-row-hover-bg); }
.sb-list li button[aria-current="true"] { background: var(--ui-row-hover-bg); font-weight: 600; }
.sb-list .e-icons { flex: none; width: 24px; height: 24px; font-size: 20px; }
.sb-list .sb-text { white-space: nowrap; overflow: hidden; }
.ui-sidebar-dock:not(.ui-sidebar-open) .sb-text { display: none; }

.main-menu-header { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--ui-muted); }
</style>
<div class="control-section">
    <div class="sb-toolbar">
        @Html.UiToolbar(new UiToolbarOptions { Id = "resToolbar", Items = (List<UiToolbarItem>)ViewData["ResToolItems"], OnClick = "toggleSidebar" })
    </div>
    <div class="sb-frame">
        @using (Html.BeginUiSidebar(new UiSidebarOptions { Id = "sideTree", Contained = true, Type = UiSidebarType.Push, Width = "290px", MediaQuery = "(min-width: 600px)", IsOpen = true, CssClass = "sidebar-treeview" }))
        {
            <div class="main-menu sb-side">
                <div class="table-content">
                    @Html.UiTextBox("resSearch", null, new UiTextBoxOptions { Placeholder = "Search..." })
                    <p class="main-menu-header">TABLE OF CONTENTS</p>
                </div>
                @Html.UiTreeView(new UiTreeViewOptions { Id = "mainTree", CssClass = "main-treeview", ExpandOn = UiTreeExpandOn.Click, Nodes = (List<UiTreeNode>)ViewData["TreeData"] })
            </div>
        }
        <div class="sb-main main-content" id="main-text">
            <div class="sidebar-content">
                <div class="sb-heading"> Responsive Sidebar with Treeview</div>
                <p class="sb-paragraph">This is a graphical aid for visualising and categorising the site, in the style of an expandable and collapsable treeview component. It auto-expands to display the node(s), if any, corresponding to the currently viewed title, highlighting that node(s) and its ancestors. Load-on-demand when expanding nodes is available where supported (most graphical browsers), falling back to a full-page reload. MediaWiki-supported caching, aside from squid, has been considered so that unnecessary re-downloads of content are avoided where possible. The complete expanded/collapsed state of the treeview persists across page views in most situations.</p>
            </div>
        </div>
    </div>
</div>
<script>
    // Syncfusion: the Menu button of the Toolbar toggles the Sidebar
    function toggleSidebar(item) {
        if (item.id === 'menu') { window.Lumen.get('sideTree').toggle(); }
    }
</script>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Lumen.UI.Mvc;

namespace YourApp.Controllers
{
    public class SidebarController : Controller
    {
        // The page is Views/Sidebar/PanelWithResponsive.cshtml; it draws what ViewData holds.
        public ActionResult PanelWithResponsive()
        {
            ViewData["ResToolItems"] = new List<UiToolbarItem>
            {
            new UiToolbarItem { Id = "menu", IconCss = "e-icons e-menu", TooltipText = "Menu" },
            new UiToolbarItem { Type = UiToolbarItemType.Input, HtmlContent = new HtmlString("<div class='e-folder'><div class='e-folder-name'>Navigation Pane</div></div>") }
            };
            ViewData["TreeData"] = new List<UiTreeNode>
            {
            new UiTreeNode { Id = "01", Text = "Installation" },
            new UiTreeNode { Id = "02", Text = "Deployment" },
            new UiTreeNode { Id = "03", Text = "Quick Start" },
            new UiTreeNode { Id = "04", Text = "Components", Children = { new UiTreeNode { Id = "04-01", Text = "Calendar" }, new UiTreeNode { Id = "04-02", Text = "DatePicker" }, new UiTreeNode { Id = "04-03", Text = "DateTimePicker" }, new UiTreeNode { Id = "04-04", Text = "DateRangePicker" }, new UiTreeNode { Id = "04-05", Text = "TimePicker" }, new UiTreeNode { Id = "04-06", Text = "SideBar" } } },
            new UiTreeNode { Id = "05", Text = "API Reference", Children = { new UiTreeNode { Id = "05-01", Text = "Calendar" }, new UiTreeNode { Id = "05-02", Text = "DatePicker" }, new UiTreeNode { Id = "05-03", Text = "DateTimePicker" }, new UiTreeNode { Id = "05-04", Text = "DateRangePicker" }, new UiTreeNode { Id = "05-05", Text = "TimePicker" }, new UiTreeNode { Id = "05-06", Text = "SideBar" } } },
            new UiTreeNode { Id = "06", Text = "Browser Compatibility" },
            new UiTreeNode { Id = "07", Text = "Upgrade Packages" },
            new UiTreeNode { Id = "08", Text = "Release Notes" },
            new UiTreeNode { Id = "09", Text = "FAQ" },
            new UiTreeNode { Id = "10", Text = "License" }
            };
            return View();
        }
    }
}
@* Install once: Install-Package Lumen.UI.Mvc   (or: dotnet add package Lumen.UI.Mvc) *@

@* Views/Web.config: <add namespace="Lumen.UI.Mvc" /> *@

@* Views/Shared/_Layout.cshtml *@
<head>
    @Html.UiStyles()
    <link rel="stylesheet" href="~/Content/site.css" />
</head>
<body>
    @RenderBody()
    @Html.UiScripts()
    @RenderSection("scripts", required: false)
</body>

The Sidebar will be shown or hidden based on the resolutions of the screen. It will be shown on larger resolution screens and hidden automatically in lower resolution screens.

In this sample, the TreeView component is placed inside the Sidebar.

© 2026 Lumen UI for ASP.NET MVC 56 components · 11 categories