Hide tooltip when clicking away

4 posts, 0 answers
  1. Rimma
    Rimma avatar
    15 posts
    Member since:
    Jan 2013

    Posted 04 Mar 2013 Link to this post

    Is there a way to hide the tooltip when you click on something else on the page?  I saw thread with suggestions to add an onclick event to the form or the body, but then the tooltip goes away even if you click on the tooltip itself.

    Thanks,
    Rimma
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 05 Mar 2013 Link to this post

    Hi Rimma,

    You have several options to remove the tooltip from being visible on screen. The easiest to implement would be HideEvent(), in which you pass the client event to trigger the tooltip to hide. Similarly, if you use the HideDelay() you can pass the number of milliseconds you want the tooltip to be visible. 

    If none of this helps, you can at least review the server side events available for the RadTooltipManager:
    http://www.telerik.com/help/aspnet-ajax/tooltip-tooltipmanager-server-api.html

    Hopefully this helps,
    Master Chief
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rimma
    Rimma avatar
    15 posts
    Member since:
    Jan 2013

    Posted 06 Mar 2013 Link to this post

    Hi, it looks like unfortunately the HideEvent does not support a click away option.  Am I correct?

    If I have to implement an OnClick javascript event on the whole body, is there a way to tell if the user clicked inside a tooltip?  In that case I wouldn't want to close the tooltip.

    Another unrelated tooltip question - when a tooltip is opened any other tooltips are closed.  Is there a way to check if there is already an open tooltip and prevent the it's closing and opening of a new tooltip?

    Thanks,
    Rimma
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 06 Mar 2013 Link to this post

    Hi guys,

    These requests are already logged in our tracker, so you can vote, comment and follow them in the folling URLs:
    http://www.telerik.com/support/pits.aspx#/details/Issue=6825 - closing on outside click
    You can find attached a simple page that shows how this can be done in the meantime, with a few lines of code. Note the isMouseOverElementEx() method from our static client library.

    http://www.telerik.com/support/pits.aspx#/details/Issue=12923 - on improving the automatic hiding of tooltips. You can see how to find the currently active tooltip by examining the Client-Side Basics help article of the control.


    Greetings,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top