Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Haresh Shahani on Dec 31, 2008 09:21
open dhtmlx forum
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?

Thanks,
Haresh.
Answer posted by Support on Jan 07, 2009 16:08
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