Internal error when use templates

2 posts, 0 answers
  1. Николай
    Николай avatar
    1 posts
    Member since:
    Nov 2014

    Posted 26 Nov 2014 Link to this post

    I tried to find a solution on the forum, but did not find.

    I have a treeview with tempate - 

    <script id="treeview-template" type="text/kendo-ui-template">
        #: item.text #    
        <span><input class="color" value="1" /></span>
        <a class="k-button appendNodeToSelected" href='\#'>Append node</a>
        <a class='k-button delete-link' href='\#'>Remove node</a>

    input in js I transforamtion to kendo dropdown.

    And when I select a node there is an error in the file 'kendo.all.min.js'
    error : 
    TypeError: e is undefined>....each(function(){var e=i.dataItem(this);e.set("selected",!1),delete e.selected}).

    If i remove input, all work OK. Help resolve this problem. Because with this error I can't add Node.

  2. Alex Gyoshev
    Alex Gyoshev avatar
    2515 posts

    Posted 28 Nov 2014 Link to this post

    Hello Николай,

    Nesting other widgets inside the TreeView is not supported at this time. If you want to allow node editing, use a standalone form.

    Alex Gyoshev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top