Client Side Event Binding

2 posts, 0 answers
  1. Tom
    Tom avatar
    7 posts
    Member since:
    Feb 2009

    Posted 17 Mar 2015 Link to this post

    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) {
    but to no avail!

    Any help appreciated.
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 19 Mar 2015 Link to this post

    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"}]);

    Peter Filipov
  3. DevCraft R3 2016 release webinar banner
Back to Top