TreeView.treeviewFromNode breaks extensions

2 posts, 0 answers
  1. Gary
    Gary avatar
    14 posts
    Member since:
    Jan 2012

    Posted 18 Jul 2012 Link to this post

    In the newest release (, the following method breaks anyone whose extended TreeView:

        function treeviewFromNode(node) {
            return $(node).closest("[data-role=treeview]").data("kendoTreeView");

    We have a "kendoTTreeView,"

  2. Alex Gyoshev
    Alex Gyoshev avatar
    2527 posts

    Posted 20 Jul 2012 Link to this post

    Hello Gary,

    The treeview needs to be able to get the client-side object of other treeviews through the DOM, in order to support drag&drop of nodes between treeviews. Because we don't have the client-side object, we cannot guess what the custom name is (so that we get the proper object). Therefore, if you need to extend an existing widget (through inheritance rather than composition), don't change its name. Another option would be to attach the same client-side object to the data("kendoTreeView").

    All the best,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top