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

Rad tree binding

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 23 Jul 2009, 05:00 AM
Hi ,

I've radtreeview. How do i bind it my database data.
I'm using LINQ to generate data.
So, how do i dynamically bind the data  to a treeview in c# web forms.

How do i have expand and collapse treeview items.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Jul 2009, 07:13 AM
Hello Zaheka,

You can bind your TreeView either using LinqDataSource as demonstrtaed in the demo below:
LinqDataSource

or you can query your linq inorder to retrieve the collection of data and then bind the TreeView to that collection.

Thanks
Princy.
Tags
TreeView
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or