Tree Map not refreshing when ItemsSource changes

3 posts, 1 answers
  1. jason
    jason avatar
    28 posts
    Member since:
    Oct 2010

    Posted 07 Feb 2012 Link to this post

    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. jason
    jason avatar
    28 posts
    Member since:
    Oct 2010

    Posted 07 Feb 2012 Link to this post

    For some reason I had to null out the ItemsSource and then give it a value again but it worked.
  3. DevCraft banner
  4. Answer
    Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 08 Feb 2012 Link to this post

    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 >>
Back to Top