Telerik Extensions for ASP.NET MVC

Version Q2 2012, released 06/07/2012

Sorting

Sort by ...

Order ID(sorted ascending)Contact NameShip CountryOrder Date
10248Paul HenriotFrance07/04/1996
10249Karin JosephsGermany07/05/1996
10250Mario PontesBrazil07/08/1996
10251Mary SaveleyFrance07/08/1996
10252Pascale CartrainBelgium07/09/1996
10253Mario PontesBrazil07/10/1996
10254Yang WangSwitzerland07/11/1996
10255Michael HolzSwitzerland07/12/1996
10256Paula ParenteBrazil07/15/1996
10257Carlos HernándezVenezuela07/16/1996
Displaying items 1 - 10 of 830

About this example ASPXRazor

This example shows the sorting capability of Telerik Grid for ASP.NET MVC. To enable sorting use the Sortable method.

The user can sort by a single column or by multiple columns. To enable multiple column sorting use the SortMode method:

<%= Html.Telerik().Grid(Model)
        .Name("Grid")
        .Sortable(sorting => sorting
            .SortMode(GridSortMode.MultipleColumn)
        )
 %> 

The user can specify which columns to be initially sorted using the OrderBy method:

<%= Html.Telerik().Grid(Model)
        .Name("Grid")
        .Sortable(sorting => sorting
            .OrderBy(sortOrder => sortOrder.Add(o => o.OrderID).Descending())
        )
 %>    

Interested in HTML5 and mobile-powered ASP.NET MVC apps?

Experience the next generation UI and framework for ASP.NET MVC development by downloading trial evaluation copy of Kendo UI Complete for ASP.NET MVC. Jumpstart your development with the available learning resources.

The differences between Telerik MVC Extensions and Kendo UI Complete for ASP.NET MVC, and their licensing models are explained here and here.

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

Other Demos: