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

HierarchicalCollectionView Questions.

1 Answer 59 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Larry
Top achievements
Rank 1
Larry asked on 10 Jul 2013, 04:01 PM
Hi,

I have some question regarding HierarchicalCollectionView while trying to troubleshoot some performance/memory issue within TreeListView.

1. why a SingleItemHierarchicalCollectionView is created for each root item, even through there is no childrens . (we retrieve the children dynamically when user clicks the expand icon).

2. The method in HierarchicalCollectionView seems problematic to us:

 

internal override void ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)

{
....

else

 

 

if (args.Action == NotifyCollectionChangedAction.Reset && EnumerableExtensions.Count(this.SourceCollection) == 0)

{

....
}

it seems it will only clear the ChildrenViewByItem when reset event happen with SourceCollection contains nothing. While in our case the sourceCollection normally contains something total new and it ends up leaking HierarchicalCollectionView/SingleItemHierarchicalCollectionView.

3. RemoveChildrenView/RemoveViewAndDisposeRecursive seems slow when the old source collection is very large .(and there is reset event with empty new SourceCollection). I can provide more detail if you want.

Thanks

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 15 Jul 2013, 03:22 PM
Hello,

Thank you for the detailed explanation of the issues you have faced. We will investigate them further and contact you back with more information.
 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
TreeListView
Asked by
Larry
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or