New to Telerik UI for ASP.NET Core? Download free 30-day trial

Grouping

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
HtmlHelper
TagHelper
Files:
grouping.cshtml
GroupingController.cs
CustomerViewModel.cs
Grouping_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET Core MultiSelect component supports a grouping feature which helps you organize predefined lists of values into logical groups.

To enable grouping, define a datasource expression with a custom DataSource configuration and specify the field by which the MultiSelect will be grouped. In the current demo, the multiselect component data is grouped by Country, .Group(g => g.Add("Country", typeof(string))) and under each group are listed all corresponding customers for that country.

Support & Learning Resources