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

Dynamic Context menus for different treeview nodes

1 Answer 193 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Atul
Top achievements
Rank 1
Atul asked on 28 Jul 2008, 08:16 PM

Hi,

I am building a WPF app and would like to integrate WPF treeview control from Telerik.

I have a couple of questions which will help me make decision faster.

1.Can we create dynamic context menus for different treeview nodes.
2.Can we create tree view nodes by just passing observable collection of different objects. Means like I have list of cars object at first node and then their parts as child and in second node I have Trucks or something like that.

Thanks

Atul

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 30 Jul 2008, 07:58 AM
Hello Atul,

We do not have out of the box support for context menus for the moment. You should leverage on the WPF framework context menu. You can assign different context menu for each item by using its ContextMenu property.

Please check the attached project to see how to bind the RadTreeView to observable collection.

Let us know if you have other questions!

Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Atul
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or