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

ToolTip manager and screen pos

3 Answers 93 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 13 Aug 2008, 08:56 AM
Hi.
I use the tooltip manager to load content using ajax.
If set the RelativeTo to the screen the tooltip sticks on screen when scrolling main window.

This creates problems if the content of the tooltip is heigher than the screen.

If i change RelativeTo to the Element instead the tooltip function as it should. But i dont want it relative to the button you clicke i want it TopCentered to the browserwindow but with the tooltip should be sticky in the same way as using the ReleativeTo=Element

By the way the Sticky property doesnt seem todo anything?

Regards, Anders

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 18 Aug 2008, 02:12 PM
Hi Anders,
The behavior you describe is by design. Consider that you have the following situation:
  1. RelativeTo="BrowserWindow"
  2. ManualClose="true"
  3. A lot of content on the page, so that the scrollbars appear

When you scroll down the page, the RadToolTip needs to recalculate its position. That is why the tooltip "sticks" on the screen.

In your particular case, you could use the following workaround in order to switch this behavior off:

       <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1"   
            RelativeTo="BrowserWindow" OnClientShow="OnClientShow" 
            Width="1000px" Height="1000px">  
       </telerik:RadToolTip> 
       <script type="text/javascript">  
       function OnClientShow(sender, args)  
       {  
            sender._popupBehavior.pin(false);  
       }  
         
       </script> 

Regarding the Sticky property - when you set it to "true", you can move the mouse over the RadToolTip, and the tooltip will not close. In case you set it to "false" (the default value), as soon as you move the mouse away from the target control, the tooltip will close (depending on the AutoCloseDelay).

Regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anders
Top achievements
Rank 1
answered on 18 Aug 2008, 02:19 PM
Thanks, that makes it stick instead of scroll. However the position of the tooltip is completly of center....

edit: If i set the width to a fixed value it centers correctly, however the width of the modal window is changing with the content so i cant hard code the width. Is there any work around 'hack' for this?

Thanks for all your help...
0
Tsvetie
Telerik team
answered on 19 Aug 2008, 11:52 AM
Hi Anders,
I am not quite sure I understand what the problem is. Could you please prepare and send us a simple running project, demonstrating the problem, together with the following information:
  1. Detailed steps we need to follow in order to reproduce the problem or edited screenshots with explanations.
  2. Detailed description of the result you get and of the one you are after.

As soon as I have this information, I will have a better understanding of the problem and will be able to help.

Kind regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Anders
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Anders
Top achievements
Rank 1
Share this question
or