angular-ui/ui-grid

scroll to focus is not working on newly added row

Open

#5,325 创建于 2016年4月15日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)JavaScript (5,395 star) (2,496 fork)batch import
good first issue

描述

after adding a new row, I am trying to set focus to the first row and the first column, but it doesn't work. $scope.gridApi.cellNav.scrollToFocus( $scope.gridOptions.data[0], $scope.gridOptions.columnDefs[0]);

here is a plunker for the same http://plnkr.co/edit/6zyZ5q?p=preview

贡献者指南