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

Client Side Event Binding

1 Answer 29 Views
TreeMap
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 17 Mar 2015, 08:19 PM
Hi,
We're wanting to wrap the TreeMap control in our own client side object. We've done this successfully for the RadGrid and RadHtmlChart. We've got the TreeMap working great, but not we want to extend the functionality to handle the tooltips like in your demo... to do that we want to bind the onItemCreated event in javascript. Can someone provide the syntax for this? We've tried:
var test = map.get_kendoWidget();
test.bind("itemCreated", function (e, d, k) {
                alert('test');
});
but to no avail!

Any help appreciated.

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 19 Mar 2015, 09:07 AM
Hello Tom,

My suggestion is to recreate the kendo widget or set data source to the Ajax component. E.g.:
$find("TreeMap1").add_itemCreated(function() { console.log("test") });
$find("TreeMap1").set_dataSource([{text: "name"}]);


Regards,
Peter Filipov
Telerik
Tags
TreeMap
Asked by
Tom
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or