ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Angular Grid Scroll focus should be on newly added row ?

Open himanshumalviya2016 opened this issue 10 years ago • 3 comments

hi guys, i have angular grid, in that am adding row on add new button. If i want to add one row and scroll is in down so moment when i add new row i need scroll should go on newly added row, means focus should be on newly added row.

please give some example or is it possible

himanshumalviya2016 avatar May 12 '16 05:05 himanshumalviya2016

http://stackoverflow.com/questions/36626954/set-focus-to-newly-added-row-in-ui-grid

the grid takes time to register the newly added row, a $timeout function does the trick. refer to the link above for example.

jamesdhakera avatar May 12 '16 05:05 jamesdhakera

this is not happing on click of add new scroll should go top weather the scroll focus in bottom

can you give some plunker

himanshumalviya2016 avatar May 12 '16 06:05 himanshumalviya2016

http://plnkr.co/edit/tf31WuX0Ctq99QtE8aMa there u go. its working.

jamesdhakera avatar May 12 '16 08:05 jamesdhakera