ToolTip.set_Width() not working

2 posts, 0 answers
  1. Vishal Dalsania
    Vishal Dalsania avatar
    2 posts
    Member since:
    Feb 2007

    Posted 04 Jan 2008 Link to this post

    I have requirement in my project to resize my tooltip according to resizing of splitter.
    For that I m using OnClientBeforeShow() event , and i have used following method.


    But i not able to see any result of this script.This is urgent so any help will be highly appreciated.
  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 08 Jan 2008 Link to this post

    Hello Vishal Dalsania,
    I just answered your support ticket. For anyone, who might run into the same problem, I will place the information here as well:

    We are aware of this issue and it is on our TODO list for the next Q. For the time being, I can offer you the following workaround:
        <script type="text/javascript">  
        var width = 100;  
        function OnClientBeforeShow(sender, args)  
            var wrapperDiv = document.getElementById("RadToolTipWrapper_" + sender.get_id());  
            var tableElement = wrapperDiv.getElementsByTagName("TABLE")[0];  
            if(wrapperDiv && tableElement)   
       = width + "px";  
       = width + 2 + "px";  
            width += 100;  
        <form id="form1" runat="server">  
            <asp:ScriptManager ID="ScriptManager1" runat="server" />  
            <asp:Label ID="Label1" runat="server" Text="Show tooltip"></asp:Label>  
            <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1" Height="100"   
                OnClientBeforeShow="OnClientBeforeShow" ManualClose="true" ContentScrolling="Both">  

    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top