Within my project, there is a specific requirement to ensure that the focus is on the first row of the ng-grid upon grid load. Furthermore, this focus should shift to the next row when the down key is pressed. To accomplish this, I implemented the following event listener:
$scope.$on('ngGridEventData', function (e,s) {
$scope.gridOptions.selectRow(0, true);
});
However, despite selecting the first row with this event, it does not automatically bring focus to that row. The user still needs to physically click on the row to set the focus. What additional statement do we need to include in order to achieve the desired focus behavior?