http://www.itq.nl/blogs/post/Kendo-UI-Grid-with-server-paging-filtering-and-sorting-(with-MVC3).aspx这是我的问题的解决方案
楷模:
public class SortDescription
{
public string field { get; set; }
public string dir { get; set; }
}
public class FilterContainer
{
public List<FilterDescription> filters { get; set; }
public string logic { get; set; }
}
public class FilterDescription
{
public string @operator { get; set; }
public string field { get; set; }
public string value { get; set; }
}
数据源:
dataSource: {
type: "json",
serverPaging: true,
serverSorting: true,
serverFiltering: true,
allowUnsort: true,
pageSize: 10,
transport: {
read: {
url: "Export/PagedData",
type: "POST",
dataType: "json",
contentType: "application/json; charset=utf-8"
},
parameterMap: function(options) {
return JSON.stringify(options);
}
},
schema: { data: "Items", total: "TotalItemCount" }
},