Tooltip causes page to scroll to top

2 posts, 0 answers
  1. Jonathan Torres
    Jonathan Torres avatar
    5 posts
    Member since:
    Jul 2009

    Posted 03 Feb 2010 Link to this post

    I have a tooltip where the content is generated from a user control.  The tooltip is displayed when a user hovers over a node in the RadTree control.  The problem I have is when the tooltip appears on a node at the bottom of a tree, the page will scroll to the top and the tooltip will be displayed.  Is there a way to prevent the page from scrolling when the tooltip is displayed?

    The usercontrol is loaded in the RadToolTipmanager1_AjaxUpdate event.  I am also using RadAjaxManager on the page but I guess it isn't configured correctly.

  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 09 Feb 2010 Link to this post

    Hello Jonathan,

    Indeed, what you report is expected since you are using AJAX to load the content of the tooltip - when a partial update is done, the scroll position is lost and this is related to general ASP.NET and AJAX and it is not directly related to the tooltip but to how the things work (you can easily reproduce it by using a standard asp update panel and no RadControls at all).

    What I suggest is to save the scroll position before the OnAjaxUpdate event e.g in hidden fields and when the content is loaded to reset it back. You can find more information about this and also other techniques on how to persists the scroll position on the net, e.g you can start from here:

    Sincerely yours,
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. DevCraft R3 2016 release webinar banner
Back to Top