Reputation: 5375
I am trying to display my data in form of a treeview in a MVC 4 application. But I am very new in MVC, so maybe somebody could recommend some step-by-step tutorial on how to use such a treeview with MVC 4?
Thanks.
Upvotes: 3
Views: 18804
Reputation: 18387
There's no "ready to use" control like that in MVC. You should use a Jquery plugin for that.
Take a look in here:
UPDATED LINK:
http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
Upvotes: 3
Reputation: 1
If you want to display data in tree view structure then I have written custom code which you can use directly. If you are interested then please reply me I will give you that code.
only you need to replace your content in that & its three level
Upvotes: 0
Reputation: 3681
I end up using below with my MVC 4 project and it works a treat,
https://github.com/jzaefferer/jquery-treeview
Upvotes: 1
Reputation: 3109
I also encountered this problem.
As Thiago Custodio already mentioned, there is no standard control for this with .net mvc4
My solution is to use the html list tags < ul > and < li > which can also include nesting. And then apply some styling wih css. if you want I can post an example. I used jquery on the ul to hide/show the inner li
Cheerz, David
Upvotes: 0