Tooltip Position Lost When set OffsetX

2 posts, 0 answers
  1. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 15 Mar 2009 Link to this post

    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> 
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 18 Mar 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top