我正在尝试从aspx页面加载kendo网格数据。我无法执行serverpaging。我尝试设置serverpaging:true。但是仍然需要花费大量时间来加载网格。
通过以下方法检索来自aspx页面的数据:Response.Write(JSON_result);
aspx页面中的网格声明为:
var grid = $("#gridAllRuns").kendoGrid({
dataSource: {
transport: {
read: {
url: url_load,
dataType: "json"
},
},
pageSize: 100,
serverPaging: true,
serverSorting: true,
serverFiltering: true
},
height: $(document).height() - 250,
groupable: true,
sortable: true,
reorderable: true,
//selectable: "multiple",
resizable: true,
// serverPaging: true,
// dataBound: resizeGrid,
pageable: {
refresh: true,
pageSizes: [100, 500, 1000],
pageSize: 1000,
buttonCount: 10
},
// toolbar: kendo.template($("#template").html()),
filterable: {
extra: false,
operators: {
string: {
eq: "equal to",
startswith: "starts with",
neq: "not equal to"
}
}
},
toolbar: kendo.template($("#template").html()),
columns: [
{
title: "Name",
field: "FName",
width: 100,
filterable: true
},
{.......}] });
任何帮助表示赞赏!