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

Tree Map not refreshing when ItemsSource changes

2 Answers 148 Views
TreeMap and PivotMap
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jason
Top achievements
Rank 1
jason asked on 07 Feb 2012, 08:33 PM
I am using a tree map control and have some filters that work on the ItemsSource of the TreeMap.  After the filtering is done I call PropertyChanged and the tree map does seem to hit the get of my property but for some reason the UI of the tree map does not refresh.

The item I am filtering is the 2nd level of my hierarchy and I checked that and the proper values are in there.  So for example, the roots Children List had 10 items in it, I filtered it down to 1 item and then called OnPropertyChanged.  I have also made my root object implement IPropertyChanged and called onPropertyChanged directly from there too but no luck.

2 Answers, 1 is accepted

Sort by
0
jason
Top achievements
Rank 1
answered on 07 Feb 2012, 08:55 PM
For some reason I had to null out the ItemsSource and then give it a value again but it worked.
0
Accepted
Yavor
Telerik team
answered on 08 Feb 2012, 01:39 PM
Hi jason,

RadTreeMap supports notifications for collection and property changes on multiple levels. I have prepared for you a small demo application that simulates a file / folder scenarios with ability to add / remove / update items in it. Each file and folder is raising CollectionChanged and / or PropertyChanged in response to changes made to its properties.

Please evaluate it in your environment and check if it is working properly. If the problem with your scenario persist will it be possible for you to prepare a small runnable app that demonstrates the issue (or update the one I have attached) and send it to us for further investigation. This way we will be able to better understand what is going wrong.

All the best,
Yavor
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TreeMap and PivotMap
Asked by
jason
Top achievements
Rank 1
Answers by
jason
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or