8 Answers, 1 is accepted
I assume that you are using RadToolTipManager with OnAjaxUpdate - if so, Indeed, what you report is expected. 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:
http://www.google.bg/#hl=bg&source=hp&q=scroll+position+ajax&meta=&rlz=1R2WZPA_enBG347&aq=f&oq=scroll+position+ajax&fp=a0599798b4eb5972
If this is not the case, please provide some more details about your exact configuration and we will examine it and do our best to help.
Svetlina
the Telerik team
Tim, we have this logged in our TODO but only a few customers have asked about it and the priority is low. In addition, this is general AJAX behavior which is not introduced by RadToolTip. I can confirm that embedding this in source code will be considered in future but for the time being, please use the workaround we have provided.
Matt, I am afraid that I could not completely understand what is the problem you experience - even if the tooltip is in a custom control, you can handle its client events and check if the page contains a specific js function (which is the one saving/restoring scroll position). Then you should simply call it in case it exists , otherwise - do nothing. In this manner your custom control will work on all pages, no matter you have put the script on the main page or not. As to our demos - they are straight forward on purpose because their goal is to show basic and particular functionality - if they are complicated it will be harder to detect the exact code related to the feature you are interested in. In addition, we have a few bigger projects as the car rental, outlook mail, dashboard, etc which you can also download and use. At last, the behavior in mention is not directly related to RadToolTip but to MS AJAX as already explained - if you remove the tooltip from your custom control and put an update panel with a button instead, you will get the same result.
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
What you ask is general knowledge on how to deal with MasterPage, User Control, etc and I cannot tell what is your exact case without examining your code.
In brief, I assume that the following will work:
1) Put the javascript functions of saving and restoring the scroll position of the page on the master page.
2) Handle the OnClientShow and OnClientHide events of the tooltip - this could be done where the tooltip itself is declared/created.
3) In the handlers from 2) check if the js functions for restore and save exist - if so, simply call them (no matter they are on the master page, the resultant page is on so they should be there). The check is needed because you could use the same control on another page where you do not want to restore the scroll position or to avoid an error if this code is missing.
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.