HideEvent=LeaveTargetAndToolTip Problem

9 posts, 0 answers
  1. Steve
    Steve avatar
    60 posts
    Member since:
    Nov 2006

    Posted 09 Dec 2008 Link to this post

    I have a RadGrid where an image in each row is added as the TargetControl to a RadToolTipManager to show a larger image when mousing over.  I have the HideEvent set to "LeaveTargetAndToolTip" but it only works when keeping the mouse over the tooltip.  If you leave the mouse over the target, it eventually goes away.  This same behavior actually happens on your own site's demo of this exact property.  What's the deal?
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 12 Dec 2008 Link to this post

    Hi Steve,

    Would you please make sure that you do not have for example set a small value for the AutoHide property of the tooltip? I tested the following online demo
    http://demos.telerik.com/aspnet-ajax/ToolTip/Examples/HideEvent/DefaultCS.aspx
    and I was not able to reproduce the problem. I also prepared a sample demo project which also works as expected - please examine the attachment. In case the problem persists, modify the attached demo in order to reproduce the problem, open a new support ticket and send it to us along with detailed reproduction instructions.


    All the best,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. plaidpony
    plaidpony avatar
    1 posts
    Member since:
    Jul 2007

    Posted 17 Dec 2008 Link to this post

    I didn't see this post before I submitted my own bug report, but I agree with Steve--this appears to be a problem with the functionality of the control.  If the HideEvent is set to LeaveTargetAndToolTip, then as long as the mouse is over the target or over the tooltip, the AutoHide value shouldn't have anything to do with when it closes--AutoHide should only come in to play if the mouse is moved away from the target or away from the tooltip.  In fact, the same incorrect behavior is exhibited using the default setting for the hide event--the tooltip dissapears even when the mouse is still over the target.
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 18 Dec 2008 Link to this post

    Hello plaidpony,

    I alsready answered your other thread and for your convenience and for others who may ask teh same thing I pasted my reply below:

    As far as I understand from your explanations you want the HideEvent=LeaveTargetAndToolTip setting not to respect the AutoCloseDelay setting. However, this behavior is by design and we think that the correct behavior is that the tooltip should close after the set delay expires. I logged your idea for future consideration and it will be discussed.

    For the time being, in order to get the desired behavior I suggest to set a very big value to the AutoCloseDelay property.

    Best wishes,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 01 Aug 2012 Link to this post

    Hi,

    Have that problem..
    The demo page linked above also has the issue.
    Test the demo page... Tooltips disapeer even if you use LeaveTargetAndToolTip, but leave the mouse over target camera..

    (And, as reported in several forums threads.. http://www.telerik.com/community/forums/aspnet-ajax/tooltip/bug-radtooltip-hideevent-leavetargetandtooltip-not-working-as-expected.aspx)
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 03 Aug 2012 Link to this post

    Hi Nicolaï,

    The fact the the tooltips close automatically regardless of the HideEvent setting (unless it is ManualClose) is by design. This behavior is controlled by the AutoCloseDelay property, which has a default value of 3000ms. This is explained in this help article.

    If you want to avoid this automatic closing (which is also exhibited by tooltips in the OS or the browser) you can either set the AutoCloseDelay to a high value (to keep the behavior, but just delay it), or set it to 0 to prevent it. You can test this in the First Look online demo.

    The HideDelay property is the one that is used for controlling how long after the mouse moves away from the target the tooltip will hide. This can also be seen in the First Look demo. Of course, if another tooltip must be shown the previous will hide immediately, regardless of this setting.

    I hope this clears the your questions and doubts.


    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.
  8. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 03 Aug 2012 Link to this post

    Hello,

    Thanks for explaining this!
    Leads me to think though; just an idea, maybe for the demo pages:
    a section called "control default values", and shows us the complete markup for a control (all properties available that have a default).
    So, for the tooltip, for example, markup would include AutoCloseDelay=3000
    ..
    But it'd have to show all default set properties/values..
    Just an idea... Not the first time a property's default value silently dupes me!

    Best regards,
    Nicolaï
  9. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 07 Aug 2012 Link to this post

    Hello Nicolaï,

    I am glad your question is now cleared.

    Regarding your suggestion - I thank you for it and we will consider it in our internal meetings. I have also updated your Telerik points for sharing this idea with us.


    Regards,
    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.
  10. Fernando
    Fernando avatar
    7 posts
    Member since:
    Apr 2015

    Posted 01 Oct 2015 Link to this post

    It's probably caused by the interpretation of the expression "Leave target and tooltip".
    In my case, it's make me think exactly like the other users. Here at my work some times we do a little mistake like this when creating some method, by  using a wrong verb to name it. And this in the future, leads others to misconceptions about what the method does.

    But by setting the AutoCloseDelay property to 0 (zero) is a good solution for me.

    Thanks a lot Marin Bratanov.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017