Jquery ui网格可扩展,不显示数据
我正在尝试在可扩展选项中绑定ui网格。我能够获得数据,但似乎我遗漏了一些东西。有人能给我一些建议吗 这是我的密码 --控制器-- ----------aspx页Jquery ui网格可扩展,不显示数据,jquery,asp.net,json,angular-ui-grid,webmethod,Jquery,Asp.net,Json,Angular Ui Grid,Webmethod,我正在尝试在可扩展选项中绑定ui网格。我能够获得数据,但似乎我遗漏了一些东西。有人能给我一些建议吗 这是我的密码 --控制器-- ----------aspx页 <div ng-controller="MainCtrl" ng-app="app"> <div class="control-group"> <input type="button" class="btn btn-small" ng-
<div ng-controller="MainCtrl" ng-app="app">
<div class="control-group">
<input type="button" class="btn btn-small" ng-click="expandAllRows()" value="Expand All"/>
<input type="button" class="btn btn-small" ng-click="collapseAllRows()" value="Collapse All"/>
</div>
<div ui-grid="gridOptions" ui-grid-pinning ui-grid-expandable class="grid"></div>
</div>
找到了它。作业错了 $scope.gridOptions.data='resultdata'
[{
"Check_number": "116511",
"Check_date": "2012-11-21T00:00:00",
"Detail": [{
"Check_number": "116511",
"Voucher_number": "10000115",
"Invoice_number": "10000115",
"Invoice_date": "2017-03-23T16:03:38.303",
"Invoice_amount": 125.0,
"Vendor_number": "01234"
}, {
"Check_number": "116511",
"Voucher_number": "10000115",
"Invoice_number": "10000115",
"Invoice_date": "2017-03-23T16:03:38.303",
"Invoice_amount": 125.0,
"Vendor_number": "01234"
}]
}]
<div ng-controller="MainCtrl" ng-app="app">
<div class="control-group">
<input type="button" class="btn btn-small" ng-click="expandAllRows()" value="Expand All"/>
<input type="button" class="btn btn-small" ng-click="collapseAllRows()" value="Collapse All"/>
</div>
<div ui-grid="gridOptions" ui-grid-pinning ui-grid-expandable class="grid"></div>
</div>