Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Dynamic tooltip with treemap is not working

$
0
0

Hi Viktor,

 Thank you for example. It works but tooltip show on center top of whole treemap (for all tiles) always.

 $("#treeMap").on("mouseenter", ".k-leaf", function (e) {
            var item = $("#treeMap").data("kendoTreeMap").dataItem($(this).closest(".k-treemap-tile"));
            var parameterID = item.ParameterID;
            $.ajax({
                    url: '@Url.Action("GetTooltipData", "Analysis")' + '?ID=' + parameterID,
                    success: function (data) {
                        $("#treeMap").kendoTooltip({
                            content: data,
                            position: "top",
                            animation: {
                                close: { effects: "fade:out"  },
                                open: { effects: "fade:in",duration: ​500 }
                            }
                        }).data("kendoTooltip").show($("#treeMap"));
                    }
                });
        });

I think i should use tile (item) instead of $("#treeMap") but when i used that it gave following error.

Error : Microsoft JScript runtime error: Object doesn't support property or method 'kendoTooltip'

 BTW, is there any way to bind tooltip data with treemap at the time of load?

 Thank you

 

 

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>