Change item images for loaded nodes in radtreeview

2 posts, 0 answers
  1. AndreasW
    AndreasW avatar
    13 posts
    Member since:
    Jul 2011

    Posted 08 Aug 2011 Link to this post

    I got a radtreeview that is bound to a set of data. When the user selects a node, the nodes data are shown in a radtabcontroller with a tabs showing different groups of data.

    In the node structure I got two different sets of images which are used as item images for the tree, using the selected tab to decide which set the tree are bound against.

    My problem is that when the user selects a new tab, and a new set of item images are set, only nodes that not yet are loaded will use these images.

    So what I need is a method to redraw or reinitialize the tree to shown the selected item images for the entire tree.

    Is it any way to accomplish this?

    Greeting from
  2. Petar Mladenov
    Petar Mladenov avatar
    3162 posts

    Posted 11 Aug 2011 Link to this post

    Hello Andreasw,

     As I managed to understand ,you are working with ViewModels, so when you need re-initializing, you can re-structure, change your ViewModels and re-bind the RadTreeView. Could you please be more precise of what you are trying to achieve so that we could provide with more detailed advice.
    On the other hand, the RadTreeViewItem exposes SelectedImageSrc property, could it fit in your scenario ?

    Petar Mladenov
    the Telerik team

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

Back to Top