Do not close tooltip if mouse is in the tooltip

3 posts, 1 answers
  1. Kai
    Kai avatar
    30 posts
    Member since:
    Aug 2010

    Posted 23 Aug 2010 Link to this post

    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. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 26 Aug 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kai
    Kai avatar
    30 posts
    Member since:
    Aug 2010

    Posted 26 Aug 2010 Link to this post

    That's it Fiko! Brillant! Thanks a lot!!
Back to Top