Edit this page

dataBound

Fired when the widget is bound to data from its dataSource.

Event Data

e.sender kendo.dataviz.ui.TreeMap

The source widget instance.

Example - subscribe to the "dataBound" event during initialization

<div id="treemap"></div>
<script>
$("#treemap").kendoTreeMap({
    dataSource: {
        data: [{
            name: "foo",
            value: 1,
            color: "red"
        }]
    },
    valueField: "value",
    textField: "name",
    colorField: "color",
    dataBound: function(e) {
        console.log("DataBound");
    }
});
</script>

Example - subscribe to the "dataBound" event after initialization

<div id="treemap"></div>
<script>
function dataBound(e) {
  console.log("DataBound");
}

$("#treemap").kendoTreeMap({
    dataSource: {
        data: [{
            name: "foo",
            value: 1,
            color: "red"
        }]
    },
    autoBind: false,
    valueField: "value",
    textField: "name",
    colorField: "color"
});
var treemap = $("#treemap").getKendoTreeMap();
treemap.bind("dataBound", dataBound);
treemap.dataSource.fetch();
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy