Telerik Extensions for ASP.NET MVC

Version Q1 2012, released 04/19/2012

Grouping

Group by ...

Contact Name: Alejandra Camino

 10281Alejandra CaminoGran Vía, 108/14/1996
 10282Alejandra CaminoGran Vía, 108/15/1996
 10306Alejandra CaminoGran Vía, 109/16/1996
 10917Alejandra CaminoGran Vía, 103/02/1998
 11013Alejandra CaminoGran Vía, 104/09/1998

Contact Name: Alexander Feuer

 10699Alexander FeuerHeerstr. 2210/09/1997
 10779Alexander FeuerHeerstr. 2212/16/1997
 10575Alexander FeuerHeerstr. 2206/20/1997
 10277Alexander FeuerHeerstr. 2208/09/1996
 10945Alexander FeuerHeerstr. 2203/12/1998
Displaying items 1 - 10 of 830

About this example ASPXRazor

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);
        })
%>

Get more than expected!

Take the Telerik Extensions for ASP.NET MVC to your Visual Studio projects to truly experience their power. Download your free copy now and jumpstart your development with the available learning resources.

The Extensions are offered in both open source and commercial versions the differences between which are well explained in the licensing FAQ.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Other Demos: