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

TreeView widget is undefined on page load when using ASP.NET MVC wrapper

1 Answer 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Cesar
Top achievements
Rank 1
Cesar asked on 02 Apr 2014, 09:33 AM
Hi,

I'm using ASP.NET MVC wrapper to render treeview, and populating data with model binding.
I want to get treeview widget and datasource ( treeview = $("#treeview").data("kendoTreeView")  ) on page load, for example in $(document).ready. Result is undefined.
I have tried even in treeview databound event, result is same.

1 Answer, 1 is accepted

Sort by
0
Cesar
Top achievements
Rank 1
answered on 02 Apr 2014, 01:41 PM
Found solution

http://stackoverflow.com/a/22726040/1790663
Tags
TreeView
Asked by
Cesar
Top achievements
Rank 1
Answers by
Cesar
Top achievements
Rank 1
Share this question
or