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

Both tooltips show when mouse move to 2 overlapping contents

2 Answers 480 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
slash
Top achievements
Rank 1
slash asked on 18 Apr 2016, 09:55 PM

This is an example: http://dojo.telerik.com/UnOJu

Have 2 DIVs, DIV 2 is inside DIV 1. Both have tooltip. When mouse move to DIV 2, both tooltips show up.

How can I let it only show tooltip for DIV 2 if mouse cursor is inside DIV 2, and show tooltip for DIV 1 if mouse cursor is inside DIV 1 but outside DIV 2?

 

 

Thanks,

Yong

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 20 Apr 2016, 01:25 PM
Hi Yong,

For this scenario I would suggest the following approach: 
- Move div2 outside div1 and position it via CSS;
- Manually hide the first tooltip using its hide method.
Take a look at the updated dojo which demonstrates this approach in action: 
http://dojo.telerik.com/@Iliana/UVeRI

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
slash
Top achievements
Rank 1
answered on 21 Apr 2016, 06:26 PM

Thank you Iliana, it looks like a right solution for my case.

 

 

Regards,

Yong

Tags
ToolTip
Asked by
slash
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
slash
Top achievements
Rank 1
Share this question
or