【发布时间】:2016-04-21 05:14:56
【问题描述】:
我是 Kendo UI 的新手,我使用数据表来显示值,这是我的旧代码(正在运行):
$http.post("/reports/api/g3swmf/report", $scope.g3sWmf ).success(function(data){
$scope.reportVal += " - " + data;
}).then(function (response){
$scope.items=response.data;
}
这里是剑道 UI 版本(不工作):
$scope.g3sGridOptions = {
toolbar: ["excel"],
excel: {
allPages: true
},
dataSource: {
type: "json",
transport: {
read: {
url:("/reports/api/g3swmf/report", $scope.g3sWmf ),
type: "post",
dataType: "json"
}
},
schema: {
model: {
fields: {
poloCode: { type: "string" },
}
}
}
}
【问题讨论】:
-
请定义不工作
-
无法到达 /reports/api/g3swmf/report 控制器并获取响应数据@The_Black_Smurf
标签: angularjs kendo-ui kendo-grid