TreeListView does not immediately respond to INotifyCollectionChanged events

5 posts, 0 answers
  1. David
    David avatar
    46 posts
    Member since:
    Nov 2008

    Posted 13 Aug 2012 Link to this post

    I have a problem with my TreeListView not responding the INotifyCollectionChanged events immediately.

    When a user requests to change the order of a node, my code will remove and then reinsert all of the children of the node into a different position with a different display name. But the tree list view still displays the children in the old order and with the old name. If I expand some unrelated node, the children will change to the new order and the new display names.
    Is there a way to get the tree list view change immediately?
    My ItemsSource is an IQuerable against an ObservableCollection. It looks like this:
    Public ReadOnly Property Children As IQueryable(Of BaseLimb)
      Get
        Return pGrouper.Children.Select(Function(e) e.Owner).AsQueryable
      End Get
    End Property

    I had other problems when I just may it an IEnumerable.
    Is there some else I should be doing to make the change immediate?
    
    


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Aug 2012 Link to this post

    Hi,

     I'm not sure how you've implemented both IQuerable and INotifyCollectionChanged. Can you clarify? Can you bind simple ListBox instead RadTreeListView and let us know if everything is working normally in this case?

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. David
    David avatar
    46 posts
    Member since:
    Nov 2008

    Posted 14 Aug 2012 Link to this post

    The pGrouper.Children in the code sample is an ObservableCollection.
    A ListBox could not demonstrate the problem because there would nothing else to click.
    The notify events are happening just not immediately.
    The view is changing but only after I expand or collapse some node that can be unrelated to the node that changed. 


  5. Neelima
    Neelima avatar
    2 posts
    Member since:
    Nov 2012

    Posted 06 Dec 2012 Link to this post

    I have run into the same issue.

    I remove or add to the collection bound to the TreeListView. Unless I Collapse and Expand the parent the TreeListView is not refreshed.

    Any thoughts telerik?

    -Neelima
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 07 Dec 2012 Link to this post

    Hello,

     I'm afraid that without looking your scenario in a runnable project we will unable to provide you more information. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready