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

Do not close tooltip if mouse is in the tooltip

2 Answers 41 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Kai
Top achievements
Rank 2
Kai asked on 23 Aug 2010, 03:47 PM
Hi all,
I have a Tooltip (2010 Q2) configured to not automatically close. This works fine. In my tooltip I have some links but as soon as I move the mouse into the Tooltip, the Tooltip disappears :-(
I thought "ShowCallout" is the function I need, right? Get/Set whether the tooltip will hide when the mouse moves away from the target element, or when the mouse [enters] and moves out of the tooltip itself. 
So Tooltip should only disappar if the user moves away the mouse from the target or the tooltip. But in my case he moves the mouse away from the target into the tooltip. Would this be a problem? There does not seem to be any difference whether I select 'True' or 'False' because in both cases it stays open as long as I'm in the text, but it closes as soon as I move away (into the tooltip or anywhere else)
ToolTipp = New Telerik.Web.UI.RadToolTipManager
      With ToolTipp
          .ID = "RadToolTipManager1"
          .RelativeTo = Telerik.Web.UI.ToolTipRelativeDisplay.Element
          .Position = Telerik.Web.UI.ToolTipPosition.BottomCenter
          .AutoTooltipify = False
          .ContentScrolling = Telerik.Web.UI.ToolTipScrolling.Default
          .Width = 150
          .Height = 50
          .EnableShadow = True
          .AutoCloseDelay = 0 'Do not auomatically close as long as mouse is on the text
          .ShowCallout = True
          .Modal = False
      End With

Thanks in advance!

P.S. Tested with IE6 and IE8

2 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 26 Aug 2010, 12:41 PM
Hi Kai,

The right setting for your scenarios is to set the HideEvent="LeaveTargetAndToolTip" property of the tooltip control. You can see the differences in this online demo.

I hope this helps.

Sincerely yours,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kai
Top achievements
Rank 2
answered on 26 Aug 2010, 02:30 PM
That's it Fiko! Brillant! Thanks a lot!!
Tags
ToolTip
Asked by
Kai
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Kai
Top achievements
Rank 2
Share this question
or