Page scrolls to top when row is added or deleted from grid

We have a grid on a page and links to add and delete rows. Whenever we add or delete a row, the browser scroll bar automatically scrolls to the top of the page. How can you preserve the scroll position of the page while adding/deleting rows?



Most probably this is caused by your HTML links ( grid has not any such functionality )
If you are using some kind of
    <a href="#" onclick=“do_some()“
beware that href=”#” part will cause page scrolling to the top