Kendo ui, MVC Treeview

Hi All,

I would like to create a multi-level treeview using kendo treeviewitemmodel.
When I set the hasChildren = true, the child are not displaying below the parent.

Table structure
—————–
ID   Name   ParentId

1   AAA      null
2   AAA1     1
3   AAA2     2
4   BBB      null
5   CCC      null

Other than treeviewitemmodel, Is there any other way to build the treeview in the controller and bind into the razor page?
Share your experience and suggestions.

Thanks!

Hi mgn_v,

Thanks for your post.

When using the datasource remote binding, you can bind only one level at a time. If you need to bind the complete tree initially, use the

treeview BindTo
or
Items
methods.

Hope this can be helpful.

Best Regards,

Eileen

Leave a Reply