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.

Telerik UI for ASP.NET Core Ninja image

The Grouping is part of Telerik UI for ASP.NET Core, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

    <kendo-grid name="grid" >
        <groupable enabled="true"/>

Only columns that are bound to a field can be groupable. To enable grouping on a column bound to an object, bind the column to a field of that object.

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

        .DataSource(dataSource => dataSource
            .Group(groups => groups.Add(p => p.UnitsInStock))
    <kendo-grid name="grid">
        <datasource page="0" type="DataSourceTagHelperType.Ajax" page-size="10" server-operation="true">
                <group field="UnitsInStock"></group>

See Also

In this article