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

Hide tooltip when clicking away

3 Answers 162 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Rimma
Top achievements
Rank 1
Rimma asked on 04 Mar 2013, 08:59 PM
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

3 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 05 Mar 2013, 07:19 PM
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
0
Rimma
Top achievements
Rank 1
answered on 06 Mar 2013, 02:23 PM
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
0
Marin Bratanov
Telerik team
answered on 06 Mar 2013, 04:29 PM
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.
Tags
ToolTip
Asked by
Rimma
Top achievements
Rank 1
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Rimma
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or