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 templates feature of the AutoComplete UI component provides complete control over the rendering of items and the popup header and footer. Using templates, you can display icons, images, and custom styling. Additionally, you can use the No-Data template to render custom messages and content if the AutoComplete has no data to display.

You can initialize the customization option with an inline string, using .Template().

All available templating options for the AutoComplete control are listed below:

  • Item Template – customization for the list items
  • Header Template – customization for the popup header
  • Footer Template – customization for the popup footer
  • No-Data Template – customization for an empty data source

Support & Learning Resources