Skip to content

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

This sample demonstrates the grouping and icons supports of the ComboBox. Type a character in the ComboBox element or click on the drodown icon to choose an item from the categorized list/icons list.

Grouping

Icons

The ComboBox 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 ComboBox is populated with icons that is rendered by mapping the iconCss field.