This is a migrated thread and some comments may be shown as answers.

Tree view as Category & Subcategory organizer.

2 Answers 202 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Lautaro
Top achievements
Rank 1
Lautaro asked on 28 Aug 2010, 11:44 AM
HI! 
Im trying to see if the tree view works for my solution.
Im doing a more advance note system that will be based on categories, which can have 0-many subcategories. 
The treeview would be perfect to organize the catgegories. Is it possible to bind the treeview to a LINQ Category class. How does the tree view store the values of where certain category should be placed in the tree?

Thanks for your answers! 
Lautaro.

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 30 Aug 2010, 09:18 PM
Hello Lautaro,

I'm assuming that your Category table contains both parent and sub-categories in them with a self-referencing relationship. If so, this demo should be of interest:

http://demos.telerik.com/aspnet-ajax/treeview/examples/populatingwithdata/linqdatasource/defaultcs.aspx

I hope that helps.
0
Lautaro
Top achievements
Rank 1
answered on 30 Aug 2010, 09:25 PM
It most defenitly does help! Thanks, its exactly what i wanted to have confirmed!
Tags
TreeView
Asked by
Lautaro
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Lautaro
Top achievements
Rank 1
Share this question
or