Hide ToolTips using onmouseout when created via ToolTipManager

4 posts, 0 answers
  1. Josh
    Josh avatar
    35 posts
    Member since:
    Nov 2007

    Posted 05 Jun 2008 Link to this post

    I'm handling tool tips using the tool tip manager. Ideally I would like the tool tip to disappear when the user move's the mouse off of the element, currently the user must mouse over the tool tip first. I do have sticky set to false and autoclosedelay set to 0. I have seen some references in other posts to adding an onmouseout event to hide the tool tip but no reference to how to handle this via the tool tip manager (I can't seem to find much/any client API reference for the Tool Tip Manager). Is this possible and if so how do I get the tool tip in the javascript?
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 09 Jun 2008 Link to this post

    Hi Josh,

    When you have the RadToolTipManager's Sticky property set to false and the AutoCloseDelay set to 0 the tooltip should disappear when you move the mouse out of the target element. You can test this behavior in this online demo. I also recommend to upgrade to the last version of RadControls for ASP.NET AJAX, namely Q1 2008 SP1, v. 2008.1.515 and test your project again. In case you still experience the problem, please open a new support ticket and send us a video capture of the described behavior along with a sample reproduction project.

    As to hiding the active tooltip manually, you can hook up the onmouseout event of the target control, reference the active tooltip and call its hide method as shown below:

     function CloseActiveToolTip()  
            {   
                setTimeout(function(){   
                    var controller = Telerik.Web.UI.RadToolTipController.getInstance();  
                    var tooltip = controller.get_activeToolTip();  
                    if (tooltip) tooltip.hide();  
                }, 1000);  
            }  
     


    Regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Josh
    Josh avatar
    35 posts
    Member since:
    Nov 2007

    Posted 10 Jun 2008 Link to this post

    That would work except sometimes the tool tip covers the element in which case there is no way to close it without generating another tooltip. I guess using js won't work in the same scenario for the same reason so I'll have to come up with a different approach... 

    It would be nice to be able to add the manual close option without that being the only way to close the tooltip, I think I saw some other posts mentioning this as well...
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 11 Jun 2008 Link to this post

    Hi Josh,

    I am afraid that I do not completely understand the problem - would you please open a new support ticket and send the following information:

    1. A video capture of the problem.
    2. A sample, fully runnable reproduction project
    3. A detailed explanation of the desired behavior

    Once I receive this information, I will do my best in order to modify your project in order to meet your requirements.

    Greetings,
    Svetlina
    the Telerik team

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