I've been looking for documentation/demos on binding a kendo treeview with a list<> in MVC architecture, but haven't found much information.
- What I have in the controller : List<UserDefined> test = List<UserDefined>();
1. [Example UserDefined class has the following properties- Id,Name,Age]
2. So, the List would look like :
List.Add(new UserDefined { Id = 1,Name = "abc", Age=10};
List.Add(new UserDefined { Id = 2,Name = "def", Age=20};
List.Add(new UserDefined { Id = 3,Name = "ghi", Age=30};
- A strongly typed view is created, to use the above list in the view.
Like so, @model List<UserDefined.test> is registered in the view.
Question : How to bind the above list (test) to the kendo Treeview?