<script id="treeview-template" type="text/kendo-ui-template">
# var id = item.id; #
# var name = item.text; #
# var parentId = item.parentId; #
#= item.parentid #
# if (item.parentid == null) { #
test
# } #
<span categoryId="#= id #" class="#= parentId #">#= name #</span>
<input type="hidden" name="#= name #" value="#= id #" />
</script>
Any way for me to disable the nodes where the parentId is null?
I tried doing this without success:-
# if (item.parentid == null) { #
<span categoryId="#= id #" class="k-denied">#= name #</span>
# } #
Thanks
Gregor