New to Telerik UI for ASP.NET MVC? Download free 30-day trial
Telerik UI for ASP.NET MVC Template Basic Usage
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
SERVER-SIDE APIDescription
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 acceptsHTML
code.
This specific example demonstrates how to utilize the Template component to customize the items of the ListView by integrating Cards, Ratings, and Buttons.