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://www.example.com/ServerBinding?OrdersGrid-page=1&OrdersGrid-orderBy=OrderID-asc&OrdersGrid-filter=OrderID~gt~10258
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()
%>