Telerik UI for ASP.NET MVC Drawer Basic Usage

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
index.cshtml
IndexController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API
devcraft ninja image

The Drawer component is part of Telerik UI for ASP.NET MVC, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Description

The Telerik UI for ASP.NET MVC Drawer is a dismissible or permanently visible panel that can be used as a sidebar component for navigation in responsive web applications or for changing the content of a section on the page. The Drawer exposes a variety of options for layout, templates, and navigation, for example, you can position the Drawer to the left or right on the page, render it as overlaping its associated content, display the component next to the associated content, collapse or expand it.

The current example shows a Drawer and a ToolBar component. The ToolBar has a hamburger icon, which expands the Drawer on click. This logic is implemented with jQuery and the client-side API methods of the Drawer. You can review it in the toggleDrawer script tag function. In addition, you can expand the Drawer by using a swipe gesture on the respective content, which is displayed through the ItemClick event handler.

The ASP.NET MVC Drawer control is part of Telerik UI for ASP.NET MVC, a professional-grade UI library with 110+ components for building modern and feature-rich web applications. The UI for ASP.NET MVC Drawer is a server-side wrapper for the Kendo UI for jQuery Drawer component and comes in the form of an HtmlHelper.

Functionality and Features

  • Display modes—Specify how the Drawer will interact with the associated content.
  • Interaction modes—Determine the user interaction and component position: pulled out from or pushed away beyond the left or right edge of the screen.
  • Templates—Customize the default Drawer items layout.
  • Hierarchy—Create a compact hierarchical structure.
  • API—Use the API methods to show and hide the component based on a specified condition.
  • Accessibility and keyboard navigation—The Drawer is accessible for screen readers, supports WAI-ARIA attributes, and delivers keyboard shortcuts for faster navigation.

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