New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Grouping
Updated on Dec 11, 2025
To request grouped data on initial load, configure the groups in the GroupDescriptorFactory. the ToDataSourceResult() extension method will return only the grouped data in the response object.
- The
Groupmethod sets the initial groups.
Razor
@(Html.Kendo().DataSource<ProductViewModel>()
.Name("myDataSource")
.Ajax(datasource => datasource
.Read(read => read.Action("Products_Read", "Home"))
.Group(groups =>
{
groups.Add(product => product.UnitPrice);
groups.Add(product => product.ProductName);
})
)
)