angular-ui/ui-grid

scroll to focus is not working on newly added row

Fermée

#5 325 ouverte le 15 avr. 2016

 (4 commentaires) (0 réaction) (0 personne assignée)JavaScript (2 496 forks)batch import
good first issue

Métriques du dépôt

Stars
 (5 395 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur