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

Changing appearance of tree item at runtime

1 Answer 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Paul Cook
Top achievements
Rank 1
Paul Cook asked on 22 Jan 2009, 09:52 AM
Hi,

We need to change the appearance of tree items at runtime. We've used a HierachicalDataTemplate and within it have an image bound to a valueconvertor which displays the appropriate image depending on the underlying value in an ObservableCollection.

This works great on the first load of the tree item. However, when changing underlying value doesn't change the appearance of the tree item. It seems the valueconverter code only gets called on the initial display,

How else can I change the appearance of my tree item at runtime?

Thanks, Paul.

1 Answer, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 26 Jan 2009, 01:57 PM
Hello Paul,

Can you please send me a sample project so that I can take a look? My guess is that the treeview does not get notified about the changes in the data source but I cannot be sure without taking a look at the code.

Best wishes,
Tihomir Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Paul Cook
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Share this question
or