Telerik Forums
Kendo UI for jQuery Forum
1 answer
58 views
Hi there,

I'm currently evaluating Kendo UI, and I've been unsuccessfully trying to bind the "dataBound" event on a TreeMap to the function, "dataBund". The binding seems to take place, but the event does not seem to fire.

$().ready(function () {
    var ds = [/*snip*/];
 
    $("#treemap").kendoTreeMap({
        dataSource: {
            data: ds,
            schema: {
                model: {
                    children: "items"
                }
            }
        },
        valueField: "value",
        textField: "name"
    });
 
    function dataBund(e) {
        console.log("DataBound");
    }
 
    var treemap = $("#treemap").getKendoTreeMap();
    treemap.bind("dataBound", dataBund);
});

I have a JSFiddle demonstrating this at http://jsfiddle.net/johncdtex/frm5rgq7/45/

Kind Regard,
John C
Hristo Germanov
Telerik team
 answered on 22 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?