• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Template in ASP.NET MVC Dropdown List Control

This sample demonstrates the template functionalities of the DropDownList. Click the DropDownList element and select an item from the customized list.

DEMO
SOURCE

The DropDownList has been provided with several options to customize each list items, group title, selected value, header and footer elements.

This sample uses the following list of templates in DropDownList

  • ItemTemplate - To customize the list item's content.
  • ValueTemplate - To customize the value element content that holds the selected item's text.
  • HeaderTemplate - To customize the header element.

More information on the template feature configuration can be found in the documentation section.

Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE