剑道网格的简单JSON问题
我想知道您是否可以帮助我,我一直在努力让我的rest JSON数据在剑道网格中正确显示几个小时,我刚刚发现这是由于我的JSON上有额外的节点剑道网格的简单JSON问题,json,kendo-ui,kendo-grid,Json,Kendo Ui,Kendo Grid,我想知道您是否可以帮助我,我一直在努力让我的rest JSON数据在剑道网格中正确显示几个小时,我刚刚发现这是由于我的JSON上有额外的节点 $(function() { var grid = $("#grid").kendoGrid({ dataSource: { data: { "ttPortalCommunicationResult": [{ "UniqueID": 7,
$(function() {
var grid = $("#grid").kendoGrid({
dataSource: {
data: {
"ttPortalCommunicationResult": [{
"UniqueID": 7,
"DocumentTitle": "Expense Contribution Scheme Guide",
"ActivationDate": "2012-05-22",
"DeactivationDate": "2020-05-12",
"CategoryDesc": "Operational news"
}],
},
pageSize: 10,
schema: {
data: "ttPortalCommunicationResult"
}
}
}).data("kendoGrid");
});
我收到一个错误无法读取未定义的属性“slice”
我的问题是,如何在包含其他节点的JSON数据上仅使用“TTPortalCommunicationsResult”节点
我想剑道应该知道如何穿越到那个节点。解释它为什么不能也很好。使用数据源模式解析方法
schema: {
parse : function(data) {
return data.ttPortalCommunicationResult;
}
}
这两个链接是相同的。