Dynamic Context menus for different treeview nodes

2 posts, 0 answers
  1. Atul
    Atul avatar
    2 posts
    Member since:
    Dec 2007

    Posted 28 Jul 2008 Link to this post


    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Jul 2008 Link to this post

    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.
Back to Top