Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > selecting the new created item in treeview while working with databinding

Not answered selecting the new created item in treeview while working with databinding

Feed from this thread
  • Hussein avatar

    Posted on Jan 10, 2012 (permalink)

    I am working with treeview with DataBinding to an object in the view model, when creating a new item in the tree it is created but it is not highlighed or selected. What I did, is to add the new created object to the collection in the view model which treeview bind on it. and its successfully added and also appeared on the screen but its not selected.

    Any Advice?
    Thanks;

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Jan 13, 2012 (permalink)

    Hello Hussein,

    If I understand your scenario correctly you need to select the item that is added. If this is the case, then I'd suggest you to bind the RadTreeViewItems IsSelected property to a business property from your view model. This article demonstrates such an approach and I hope it will help you get started on implementing your requirements.

    If you need more info, please let us know.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > selecting the new created item in treeview while working with databinding
Related resources for "selecting the new created item in treeview while working with databinding"

WPF TreeView Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]