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

Tooltip Position Lost When set OffsetX

1 Answer 88 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
James Shelton Agar
Top achievements
Rank 2
James Shelton Agar asked on 16 Mar 2009, 12:32 AM

hi, i have just upgraded my project to 2009 Q1, and besides a lot of design changes and problems, I have a problem with tooltip
The Position seems to be lost when ever I set OffsetX (it does not show the "point to")
I'll just put example code here so you can try to reproduce the case

    <form id="form1" runat="server">  
    <telerik:RadScriptManager runat="server" OutputCompression="AutoDetect">  
    </telerik:RadScriptManager> 
    <telerik:RadToolTip ID="RadToolTip1" runat="server" Skin="Vista" TargetControlID="map_canvas"   
        ManualClose="True" RelativeTo="Element" RenderInPageRoot="True"   
        VisibleOnPageLoad="True" IsClientID="True" 
        Position="TopLeft" OffsetX="200">  
        <div> 
            Hello World  
        </div> 
    </telerik:RadToolTip> 
    <div id="map_canvas" style="top: 350px; left: 330px; position: absolute; height: 26px;  
        width: 56px; float: left"> 
    </div> 
    </form> 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 18 Mar 2009, 11:44 AM
Hello James,

Dynamic repositioning of the RadToolTip's callout was introduced in the Q1 2009 release. The idea behind this functionality is that the tooltip callout positions better when the tooltip is near the edges of the screen. This new feature works well when the tooltip is shown vertically on the right or on the left but in some scenarios when it is rendered horizontally the callout is mispositioned.

There are two possible solutions for the problem:

1. To revert to the previous behavior - override the method which repositions the callout. All you should do to achieve this is to include the following script on your page:

    <script type="text/javascript">  
        Telerik.Web.UI.RadToolTip.prototype._adjustCallout = function()  
        {  
        }  
        </script> 

2. The behavior was improved and you can give it a try by downloading and testing the latest internal build which is from 16.03.2009.

You can find a sticky forum thread about this below:

http://www.telerik.com/community/forums/aspnet-ajax/tooltip/q1-2009-problem-with-radtooltip-s-callout-positioning.aspx


Regards,
Svetlina
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
James Shelton Agar
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
Share this question
or