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

Internal error when use templates

1 Answer 54 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Николай
Top achievements
Rank 1
Николай asked on 26 Nov 2014, 01:59 PM
Hello.
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>
</script>

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.







1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 28 Nov 2014, 09:56 AM
Hello Николай,

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

Regards,
Alex Gyoshev
Telerik
 

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.

 
Tags
TreeView
Asked by
Николай
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or