Grouping

By default, the grouping functionality of the Telerik UI Grid for ASP.NET Core is disabled.

For a runnable example, refer to the demo on using aggregates in the Grid.

To control grouping in the Grid, use the Groupable() method.

    @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.CustomerViewModel>()
        .Name("grid")
        .Groupable()
        ...

You can also render groups by setting group expressions in the DataSource of the Grid even without enabling Groupable.

    .Name("Grid")       
    .DataSource(dataSource => dataSource
        .Ajax()
        .Group(groups => groups.Add(p => p.UnitsInStock))

See Also

In this article
Not finding the help you need? Improve this article