I'm creating a treeview in MVC using the TreeViewBuilder. like this
Html.Kendo().TreeView().Name("TreeViewTemplateBiding")....
I need to get access to the treeview instance in a script. It's not an event, so I can't rely on the tree passing the instance to my function.
I'm trying, as instructed:
var myTree = $("#TreeViewTemplateBiding").data('kendoTreeView')
This does not work, it returns 'undefined'. In fact I can see that $("#TreeViewTemplateBiding") has no data at all.
Please assist.