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

ASP.NET MVC Drawer Items

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
items.cshtml
ItemsController.cs
_drawerContentPartial.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET MVC 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.

Additional Apps

This Drawer example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources