Example of Grouping and Icon in ASP.NET MVC AutoComplete Control
This sample demonstrates the grouping and icons supports to the AutoComplete. Type a character in the AutoComplete element and choose an item from the categorized list/icons list.
Icons
The AutoComplete allows to group the relevant items under a corresponding category by mapping the
groupBy
field, and allows to load the list items with icons. And also enabled the
showPopupButton
property to show the all suggestion items while clicking on popup button.
The grouping sample illustrates how the vegetables are grouped based on its category.
The 2nd AutoComplete is populated with icons which 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.