HierarchicalCollectionView Questions.

2 posts, 0 answers
  1. Larry
    Larry avatar
    12 posts
    Member since:
    Dec 2009

    Posted 10 Jul 2013 Link to this post

    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

     

     

     

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 15 Jul 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top