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

[Solved] Help with the treeview

0 Answers 89 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
carlg
Top achievements
Rank 1
carlg asked on 30 Jul 2010, 07:10 PM
I'm trying to use the Telerik treeview control for ASP.NET MVC to set something up similar to what this guy on this sample page has:

site


The data for the treeview is coming from the database.  Each node of the tree is represented by 1 row in the DB table.  Top level nodes and low level nodes are all in the same table.  There is a parentid field on the table which identifies the hierarchy.  This means the highest node in the tree and the lowest node in the tree (could be 4, 5, or more tree levels down) are all in the same table and the parent id column is what defines the relationships between nodes.  How many levels is not known at run time similar to the example that the above website shows.

I've gone through the bind to model example but it just isn't making sense.  Has anyone else done something like this and mind posting some sample code?

Thanks for the help!
Tags
TreeView
Asked by
carlg
Top achievements
Rank 1
Share this question
or