I thus far worked with asp:Treeview
for all my dynamic menus for my web applications..
Any suitable replacement of it in an asp.net mvc web application...
- Any HTML helper that can perform like Treeview for me?
I thus far worked with asp:Treeview
for all my dynamic menus for my web applications..
Any suitable replacement of it in an asp.net mvc web application...
I would use jQuery based plugin. Like this one.
As Arnis said, using Jquery Pluggin, it is so easy! I do it by encapsulating the code and html in a Partial View as a UserControl. You can do it by a recursive logic:
In my Mvc Controls Toolkit I have a server control based on the jQuery TreView. However, I allow node editing, insertion ov new nodes, and moving sub-tree into another location by dragging it with the mouse. All changes are reflected Automatically on data structures on the server side when the view is posted. Moreover all nodes are templated and the same tree can have different type of nodes. Give a look here: http://mvccontrolstoolkit.codeplex.com/wikipage?title=TreeView