Example of Grouping and Icon in ASP.NET MVC Dropdown List 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.
DEMO
SOURCE
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.
More information on the grouping feature configuration can be found in the documentation sectionopens in a new tab.