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

Bind TreeView To SQL DB with N - Level

1 Answer 99 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 14 Jul 2015, 08:03 AM

hi

I cant Find Sample Of Bind TreeView To SQL Server DB with All Functions (Insert - Update - Delete) in N - Level Support.

can You Help Me?

Tanks.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Jul 2015, 10:56 AM
Hello Ali,

Thank you for writing.

I have prepared a sample project demonstrating how to bind RadTreeView to 3-level hierarchical data. When clicking the button its depth is changed to 4. You can follow approach to bind hierarchy. It is just necessary to construct correctly the DisplayMember and ValueMember properties. Additionally, in order to allow add, update, remove operation, you should set the following properties to true:
this.radTreeView1.AllowAdd = true;
this.radTreeView1.AllowEdit = true;
this.radTreeView1.AllowRemove = true;
this.radTreeView1.AllowDefaultContextMenu = true;

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Treeview
Asked by
ali
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or