selecting the new created item in treeview while working with databinding

2 posts, 0 answers
  1. Hussein
    Hussein avatar
    5 posts
    Member since:
    Jan 2012

    Posted 10 Jan 2012 Link to this post

    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?
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 13 Jan 2012 Link to this post

    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 >>

Back to Top