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

Hide ToolTips using onmouseout when created via ToolTipManager

3 Answers 117 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 05 Jun 2008, 10:14 PM
I'm handling tool tips using the tool tip manager. Ideally I would like the tool tip to disappear when the user move's the mouse off of the element, currently the user must mouse over the tool tip first. I do have sticky set to false and autoclosedelay set to 0. I have seen some references in other posts to adding an onmouseout event to hide the tool tip but no reference to how to handle this via the tool tip manager (I can't seem to find much/any client API reference for the Tool Tip Manager). Is this possible and if so how do I get the tool tip in the javascript?

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 09 Jun 2008, 12:39 PM
Hi Josh,

When you have the RadToolTipManager's Sticky property set to false and the AutoCloseDelay set to 0 the tooltip should disappear when you move the mouse out of the target element. You can test this behavior in this online demo. I also recommend to upgrade to the last version of RadControls for ASP.NET AJAX, namely Q1 2008 SP1, v. 2008.1.515 and test your project again. In case you still experience the problem, please open a new support ticket and send us a video capture of the described behavior along with a sample reproduction project.

As to hiding the active tooltip manually, you can hook up the onmouseout event of the target control, reference the active tooltip and call its hide method as shown below:

 function CloseActiveToolTip()  
        {   
            setTimeout(function(){   
                var controller = Telerik.Web.UI.RadToolTipController.getInstance();  
                var tooltip = controller.get_activeToolTip();  
                if (tooltip) tooltip.hide();  
            }, 1000);  
        }  
 


Regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Josh
Top achievements
Rank 1
answered on 10 Jun 2008, 07:44 PM
That would work except sometimes the tool tip covers the element in which case there is no way to close it without generating another tooltip. I guess using js won't work in the same scenario for the same reason so I'll have to come up with a different approach... 

It would be nice to be able to add the manual close option without that being the only way to close the tooltip, I think I saw some other posts mentioning this as well...
0
Svetlina Anati
Telerik team
answered on 11 Jun 2008, 01:52 PM
Hi Josh,

I am afraid that I do not completely understand the problem - would you please open a new support ticket and send the following information:

  1. A video capture of the problem.
  2. A sample, fully runnable reproduction project
  3. A detailed explanation of the desired behavior

Once I receive this information, I will do my best in order to modify your project in order to meet your requirements.

Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Josh
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Josh
Top achievements
Rank 1
Share this question
or