BUG: RadToolTip - HideEvent:LeaveTargetAndToolTip Not Working as expected

7 posts, 1 answers
  1. Guido Tapia
    Guido Tapia avatar
    87 posts
    Member since:
    Jul 2012

    Posted 19 Apr 2009 Link to this post


    I have read the docs and the LeaveTargetAndToolTip property is supposed to only hide if we leave the tooltip and the element.  However this is not working in your latest release.

    You can see this in your demo:

    - Select: LeaveTargetAndToolTip
    - Put mouse over one of the cameras
    - Wait ...
    - Tooltip closes ??

    I have tried this on IE8, Chrome and FireFox and the bug is in all browsers.


    Guido Tapia
  2. Answer
    Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 22 Apr 2009 Link to this post

    Hello Guido,

    Thank you for reporting this, we are aware of it and what actually happens is this setting does not respect the AutoCloseDelay. However, we are still considering making the autoclose obsolete and that is why we haven't fixed this yet but it is in our TODO list.

    For the time being in order to get the desired result I can suggest you to use one of the following approaches:

    1. Override the default behavior and respect the autoclose by including the following script:

              <script type="text/javascript">  
          Telerik.Web.UI.RadToolTip.prototype._oldResetAutoCloseDelay = Telerik.Web.UI.RadToolTip.prototype._resetAutoCloseDelay;  
          Telerik.Web.UI.RadToolTip.prototype._resetAutoCloseDelay = function()      
              if (this.get_leaveTargetAndToolTip()) return;  
    2. Set a very big value for the AutoCloseDelay property.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Guido Tapia
    Guido Tapia avatar
    87 posts
    Member since:
    Jul 2012

    Posted 22 Apr 2009 Link to this post

    Looks like that did the job.


  4. David
    David avatar
    13 posts
    Member since:
    Sep 2012

    Posted 08 Jan 2015 Link to this post

    6 years later and no bug fix!!!! Looks like this one fell through the cracks. Can you please fix this one? The tool tip automatically closes even though I have not moved the cursor from the element. The error can be reproduced on your demo.

  5. Marin Bratanov
    Marin Bratanov avatar
    5108 posts

    Posted 09 Jan 2015 Link to this post

    Hi David,

    The AutoCloseDelay property of the tooltips defaults to 3000ms so tooltips close automatically after that delay if there is no user action (e.g, the mouse being moved even a bit so the mouseover events fire).

    To disable this feature, set the AutoCloseDelay property to 0 as shown in the following articles:

    I am also attaching here a short video that demonstrates the expected behavior as a reference so you can confirm if I am missing something.

    As for the 6 year delay - as Svetlina noted, we were considering whether the HideEvent setting should override the AutoCloseDelay, but we decided it should not, as this would make the automatic closing useless. For example, in the OS, tooltips hide automatically after a few seconds as well. Thus, we decided to keep both properties and let the developers choose the behavior. The only HideEvent that overrides AutoCloseDelay is ManualClose, as it must require a user action.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  6. Jon
    Jon avatar
    36 posts
    Member since:
    Sep 2013

    Posted 01 Jun 2016 in reply to Marin Bratanov Link to this post

    Hello Marin,

    I think this information about setting AutoCloseDelay = 0 should be on the demo page that David mentions.  That page is dedicated to demonstrating and explaining the ToolTip "Hide on Event".

    Without this information, it makes nearly all the statements on the page incorrect and you will have a lot of developers thinking the control has a bug.

    For instance: Default - hides when mouse is out of the target element

    This is not true.  It's really - hides when mouse is out of the target element or after mouse has been inactive in the target element for 3 seconds.

    Many of us want to leave the tip open, particularly if the tip may take longer than 3 seconds to read.  So when we read this page, we assume we can achieve what is stated and we will not be able to guess that we have to set the AutoCloseDelay to 0.

    I suggest putting this information above the Radio Buttons that allow the user to test the different hide events.




  7. Ianko
    Ianko avatar
    1914 posts

    Posted 06 Jun 2016 Link to this post

    Hi Jon,

    Thank you for your feedback. I will pass it on to the team and consider putting the described note in the demo description. 

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top