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

"dataBind" not binding

1 Answer 56 Views
TreeMap
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 22 Oct 2014, 07:04 AM
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

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 22 Oct 2014, 07:49 AM
Hello John,

You are right. This example from documentation doesn't work. The correct one is: http://dojo.telerik.com/@germanov/abIZU/2

I will update dataBound api reference help topic.

I have updated your telerik points.

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
John
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or