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

Change item images for loaded nodes in radtreeview

1 Answer 48 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
AndreasW
Top achievements
Rank 1
AndreasW asked on 08 Aug 2011, 10:07 AM
Hi,
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
Andreas

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 11 Aug 2011, 11:51 AM
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 ?

Greetings,
Petar Mladenov
the Telerik team

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

Tags
TreeView
Asked by
AndreasW
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or