angular-ui/ui-grid

scroll to focus is not working on newly added row

Open

#5325 aperta il 15 apr 2016

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
good first issue

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor