Telerik Extensions for ASP.NET MVC

Version Q2 2012, released 06/07/2012

Server Binding

Drag a column header and drop it here to group by that column
Order ID
Filter
Contact Name
Filter
Ship Address
Filter
Order Date
Filter
10248Paul Henriot59 rue de l'Abbaye07/04/1996
10249Karin JosephsLuisenstr. 4807/05/1996
10250Mario PontesRua do Paço, 6707/08/1996
10251Mary Saveley2, rue du Commerce07/08/1996
10252Pascale CartrainBoulevard Tirou, 25507/09/1996
10253Mario PontesRua do Paço, 6707/10/1996
10254Yang WangHauptstr. 3107/11/1996
10255Michael HolzStarenweg 507/12/1996
10256Paula ParenteRua do Mercado, 1207/15/1996
10257Carlos HernándezCarrera 22 con Ave. Carlos Soublette #8-3507/16/1996
Displaying items 1 - 10 of 830

About this example ASPXRazor

This example shows how Telerik Grid for ASP.NET MVC is using server (HTTP GET) requests for paging, sorting, filtering and grouping. This operation mode is referred to as "Server binding". This is the default mode and does not require any configuration. All the required data is submitted in the query string. In order to support multiple grids on the same page the Grid is adding prefixes before the query string parameters. Here is how a typical URL looks like (assuming that the Name of the grid is "OrdersGrid"): http://demos.telerik.com/aspnet-mvc/grid/serverbinding?Grid-page=6&Grid-orderBy=OrderID-asc&Grid-groupBy=OrderID-asc~ShipAddress-asc&Grid-filter=~

If you have only one grid on the page you can disable the query prefixing:

<%= Html.Telerik().Grid(Model)
        .Name("Grid")
        .PrefixUrlParameters(false)
        .Columns(columns =>
        {
            columns.Bound(o => o.OrderID).Width(81);
            columns.Bound(o => o.Customer.ContactName).Width(200);
            columns.Bound(o => o.ShipAddress);
            columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(100);
        })
        .Pageable()
        .Sortable()
        .Filterable()
%>

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: