score:1

Accepted answer

score:0

you need to use the groupby function.

score:0

please see this link. it uses an extension method .ashierarchy() to represent hierarchical data

http://www.scip.be/index.php?page=articlesnet18#ashierarchy.

the returned object would be in tree structure. you just then have to decided on your presentation logic(space for each child node)

score:0

you can build a simple set of html in your action code assign specific values of your html that you build dynamically in your action with values you get by using linq. then on you view when you return it using viewdata render it as pure html and use jquery to create the tree here some good example of jquery tree plugin

http://mbraak.github.com/jqtree/


Related Query

More Query from same tag