angular-ui/ui-grid

scroll to focus is not working on newly added row

Open

#5.325 aberto em 15 de abr. de 2016

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (2.496 forks)batch import
good first issue

Métricas do repositório

Stars
 (5.395 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador