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

TreeListView does not immediately respond to INotifyCollectionChanged events

4 Answers 51 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 14 Aug 2012, 12:16 AM
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?




4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Aug 2012, 05:50 AM
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.

0
David
Top achievements
Rank 1
answered on 14 Aug 2012, 06:46 AM
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. 


0
Neelima
Top achievements
Rank 1
answered on 06 Dec 2012, 09:29 PM
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
0
Vlad
Telerik team
answered on 07 Dec 2012, 07:39 AM
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.

Tags
TreeListView
Asked by
David
Top achievements
Rank 1
Answers by
Vlad
Telerik team
David
Top achievements
Rank 1
Neelima
Top achievements
Rank 1
Share this question
or