Pre-Select rows on load with angular-ui-grid
I want to select certain rows on page load(working days) This is the plunker plnkr.co/edit/48NyxngWNGIlOps1Arew?p=preview Any suggestion? Add the following property to your $scope.gridOptions object : onRegisterApi: function(gridApi) { $scope.gridApi = gridApi; $scope.gridApi.grid.modifyRows($scope.gridOptions.data); $scope.gridApi.selection.selectRow($scope.gridOptions.data[0]); } This sets a $scope.gridApi so you can access it if you need it outside of this function. You need to call the modifyRows method in order to be able to make changes to your rows. Then the first row is selected (just