How select the first Row default in UI-Grid in Angular JS:
I tried below code, but it is not working:
$scope.gridOptions.data = someData;
$timeout(function () {
$scope.gridApi.selection.selectRow($scope.gridOptions.data[0]);
},
100)
and Tried even below solution also but this is also not working :
$scope.gridOptions.data = someData;
$scope.gridApi.selection.selectRow($scope.gridOptions.data[0]);
Could any one please suggest how to get it. Thanks in advance