Skip to content

Example of Grouping and Icon in ASP.NET MVC DropDownList Control

This sample demonstrates the grouping and icons supports of the DropDownList. Click the DropDownList element and select an item from the categorized list/icons list.

Grouping

Icons

The DropDownList allows to group the relevant items under a corresponding category by mapping the groupBy field, and allows to load the list items with icons.

The grouping sample illustrates how the vegetables are grouped based on its category.

The 2nd DropDownList is populated with icons that is rendered by mapping the iconCss field.