【发布时间】:2018-02-26 13:34:17
【问题描述】:
我正在将数据绑定到剑道网格并具有以下架构。
$("#divShowReports").kendoGrid({
dataSource: {
data: data,
schema: {
model: {
fields: {
ReportID: { type: "string" },
ReportName: { type: "string" },
ReportQuery: { type: "string" },
IsAccessToAll: { type: "string" },
CustomerID: { type: "string" },
CustUserID: { type: "string" }
}
}
},
pageSize: 10,
},
sortable: true,
filterable: true,
columnMenu: true,
pageable: true,
columns: [{
field: "ReportName", title: "Report Name",
template: "<a value='#=ReportQuery#' href='javascript:void(0)' onclick=ShowAdhocGrid(this)>#=ReportName#</a>"
},
{ field: "ReportID", title: "ReportID", hidden: true },
{ field: "ReportQuery", title: "Report Query" },
{ field: "IsAccessToAll", title: "Is Access to All" },
{ field: "CustUserID", title: "CustUserID" },
{ field: "CustomerID", title: "CustomerID" },
]
});
}
}
现在我从不同的 API 调用中获取“ReportQuery”字段值。请帮助我在不干扰其他事情的情况下如何将新数据合并到旧架构中。
谢谢
【问题讨论】:
标签: asp.net json asp.net-web-api model-view-controller kendo-ui