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

    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.
  2. Peter Filipov
    Admin
    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"}]);


    Regards,
    Peter Filipov
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top