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

Customizing templates

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
HtmlHelper
TagHelper
Files:
template.cshtml
TemplateController.cs
CustomerViewModel.cs
Template_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The ASP.NET Core DropDownList comes with the option for different templates that let you control the items, selected values, and the popup headers in the component. As shown in this demo example, you can customize the rendering of the DropDownList and include images and other type of content using the header, item and value templates.

Support & Learning Resources