New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Drawer Items

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
items.cshtml
ItemsController.cs
_drawerContentPartial.cshtml
items_TagHelper.cshtml

Also available for:

CLIENT-SIDE API HTML HELPER API

Description

The Telerik UI for ASP.NET Core Drawer supports populating its navigation from a data array through the Items configuration. Each item can define a text label, an icon, separator behavior, selected state, and custom HTML attributes.

In this demo, the Drawer navigation is defined entirely through the Items builder. The Attributes option is used to attach a data-id attribute to each item, which the ItemClick event handler uses to show the corresponding content panel.

Key configuration options:

  • Items—Defines the navigation items directly in the server-side configuration without the need for an HTML template.
  • Text—The label displayed next to the icon.
  • Icon—The name of a Kendo UI font icon to render alongside the text.
  • Separator—When set to true, renders a visual divider between groups of items.
  • Selected—Marks an item as initially selected.
  • Attributes—A collection of custom HTML attributes applied to the rendered item element.

The ASP.NET Core Drawer component is part of Telerik UI for ASP.NET Core, a professional-grade UI library with 120+ components for building modern and feature-rich web applications. The UI for ASP.NET Core Drawer is a server-side wrapper for the Kendo UI for jQuery Drawer component and supports an HtmlHelper and a TagHelper mode.

Additional Apps

This Drawer example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources