or
$().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);
});