Updating selected rows into ng-grid

╄→гoц情女王★ 提交于 2019-12-06 07:23:15

Apparently this is how you do it (based on the example at ngGrid:

  $scope.selectAdam = function() {
    angular.forEach($scope.myData, function(data, index){
      if(data.name == 'Adam' && data.age == 34){
        $scope.gridOptions.selectItem(index, true);
      }
    });
  }

Working Plunker: http://plnkr.co/edit/K7b2ElQ1Z5uNAijFk7x4?p=info][1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!