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

Hover / more details

3 Answers 108 Views
TreeMap
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 01 Oct 2014, 09:37 AM
Do you have any examples with treemaps with hover tooltip style windows - that can for example show the underlying values, or more details behind the item

Thanks

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 03 Oct 2014, 07:43 AM
Hello Chris,

We haven't such example but you need to:
1) Wire up a mouse over event for .k-tile elements.
2) Get the uid from the element.
3) Get the dataItem from element uid.
4) Show a tooltip or a div with information in the dataItem.

I hope this helps.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Dave
Top achievements
Rank 1
answered on 22 Oct 2014, 03:38 AM
Hristo, 

Would your suggestion be implemented as a function on itemCreated, or would it be done outside of that object?
0
Hristo Germanov
Telerik team
answered on 23 Oct 2014, 04:30 PM
Hello Dave,

You can do both.

Wire up to all dynamic elements via:
$("#treeMap").on("mouseenter", ".k-leaf", function() { alert(1) });
and you can hook up to the itemCreated event and attach your hover event.

I hope this helps.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeMap
Asked by
Chris
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Dave
Top achievements
Rank 1
Share this question
or