Treemap get data item clicked on (ASP.NET MVC Razor)

2 posts, 0 answers
  1. Lee
    Lee avatar
    1 posts
    Member since:
    Aug 2014

    Posted 09 Mar 2015 Link to this post

    Regarding the Treemap Chart:  Do you have an example of how to get the data item that is clicked on?  We're using ASP.NET MVC Razor.
  2. Daniel
    Admin
    Daniel avatar
    2230 posts

    Posted 11 Mar 2015 Link to this post

    Hello Lee,

    You can use the dataItem method to get the data item e.g.
    $(function () {
        $("#treeMap").on("click", ".k-leaf, .k-treemap-title", function (e) {
            var item = $("#treeMap").data("kendoTreeMap").dataItem($(this).closest(".k-treemap-tile"));
        });
    });


    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top