This example demonstrates the grouping capabilities of Telerik Grid for ASP.NET MVC.
To enable grouping use the Groupable method. You can also define groups from code:
<%= Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(c => c.CustomerID).Width(80);
columns.Bound(c => c.ContactName);
columns.Bound(c => c.Country).Width(90);
})
.Groupable(grouping => grouping.Groups(groups =>
{
groups.Add(c => c.Country);
groups.Add(c => c.ContactName);
})
%>