HkF*_*718 10 angularjs ng-grid
我有一个问题让我在我的plunker示例中简单说明我想知道为什么我的$scope.revertSelection()
功能不起作用.[ http://plnkr.co/edit/3KXrUuCsSACuhefmyzxN?p=info][1]
脚步:
1)按名称(降序)对右手网格排序
2)随机选择3-4行
3)单击"复制"按钮将所有选择的行复制到其中 $scope.retainSelection
4)按名称(升序)对右手网格排序
5)点击"恢复"按钮(这不起作用)
我期待之前在步骤2)中选择的所有行都被选中回来没有发生:-(请帮助我解决问题.我用Google搜索但找不到任何文档gridApi.selection
来寻找其他方法来满足我的要求.
注意:我使用的是Ui.grid而不是ng-grid
问候,
HkF*_*718 17
我应该用......
$scope.gridApi.grid.modifyRows($scope.gridOptions.data);
$scope.gridApi.selection.selectRow($scope.gridOptions.data[i]);
Run Code Online (Sandbox Code Playgroud)
...代替...
$scope.gridApi.selection.selectRow(i);
Run Code Online (Sandbox Code Playgroud)
我的朋友给了文档链接.
归档时间: |
|
查看次数: |
25086 次 |
最近记录: |