我很难让 kendoGrid 从 ASPX 页面中的 Web 方法绑定到 JSON 数据。我不断得到无限旋转。JSON 来自 ajax 调用。我不知道为什么它不绑定到网格。这是我的JS。
$('#grid').kendoGrid({
columns: [
{
field: "ClientName",
title: "ClientName"
}],
dataSource: {
type: 'json',
serverPaging: true,
schema: {
data: 'd'
},
transport: {
read: function (options) {
$.ajax({
type: 'POST',
url: 'ServiceMonitoring.aspx/GetGridInformation',
dataType: 'json',
data: '',
contentType: 'application/json; charset=utf-8',
serverPaging: true,
success: function (msg) {
options.success(msg.d);
}
});
}
}
},
height: 200,
pageSize: 10
});