This is a migrated thread and some comments may be shown as answers.

RadToolTip and firefox issue

8 Answers 92 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 22 Mar 2011, 05:51 PM
I have a page with many images. There are scroll bars on the side because there are so many images. So if you are scrolled down to the bottom and hover over a image, the radtooltip causes the page to scroll back up to the top in firefox. it works fine in ie.

8 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 24 Mar 2011, 12:36 PM
Hi Matt,

 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.

All the best,
Svetlina
the Telerik team
0
Tim Harker
Top achievements
Rank 2
answered on 28 Apr 2011, 07:44 PM
Why isn't this included in your tool?
0
Matt
Top achievements
Rank 1
answered on 28 Apr 2011, 08:35 PM
Yeah I have seen stuff like that before, the only problem is this tool tip is inside a custom contol inside a page inside a master page and I just can't figure out how to make that work. All the examples are just for simple pages with the tool tip on it.
0
Svetlina Anati
Telerik team
answered on 03 May 2011, 02:43 PM
Hello guys,

 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.

All the best,
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.

0
Matt
Top achievements
Rank 1
answered on 03 May 2011, 03:47 PM
Well that's my problem. The examples show a tool tip on a page and some javascript methods on a page. Yeah I can make that work. But on the project I am working on there is a master page->page->user control->user control->user control->tool tip hierarchy and I can't get it to work. Not sure where to put stuff to make this work correctly. Does certain parts go on the master page? Do certain parts go on the page? The control?
0
Svetlina Anati
Telerik team
answered on 06 May 2011, 11:47 AM
Hi Tim,

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.
 

All the best,
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.

0
Matt
Top achievements
Rank 1
answered on 23 May 2011, 04:08 PM
Yeah, I just can't get it to work. I have tried well over 2 dozen "solutions" and not one will work for me. I give up I guess.
0
Matt
Top achievements
Rank 1
answered on 23 May 2011, 04:09 PM
t
Tags
ToolTip
Asked by
Matt
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Tim Harker
Top achievements
Rank 2
Matt
Top achievements
Rank 1
Share this question
or