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

Telerik UI for ASP.NET MVC Template Basic Usage

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

Also available for:

SERVER-SIDE API

Description

The Telerik UI for ASP.NET MVC Template component allows you to seamlessly nest multiple Telerik UI for ASP.NET MVC components within other Telerik UI for ASP.NET MVC components. You can incorporate it into components like Data Grid, ListView, TreeList, which often require complex layout templates, for example, column templates, custom editors, items layout, etc. On top of that, when using the Template component, it creates CSP-compatible templates.

The HtmlHelper Template component provides the following options:

  • AddComponent()—The method accepts any Telerik UI for ASP.NET MVC HtmlHelper component declaration.
  • AddHtml()—The method accepts HTML code.

This specific example demonstrates how to utilize the Template component to customize the items of the ListView by integrating Cards, Ratings, and Buttons.

Additional Apps

This Template 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