Performance on expand/close...

4 posts, 0 answers
  1. Eric
    Eric avatar
    6 posts
    Member since:
    Feb 2012

    Posted 22 Mar 2012 Link to this post

    I have a grid view that has about 450 items in it, with 8 columns on each item. There are 10 top-level nodes.

    Expanding or collapsing at any level takes quite a while - click on the arrow, wait almost a second, then the change shows up in the grid. The speed doesn't seem to change depending on whether the tree is fully expanded or fully closed. The treelist is bound directly to a collection.

    I did a quick profile, and it looks like it's spending most of it's time in:

    Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureChild(class System.Windows.UIElement,valuetype System.Windows.Size,int32)

    Any thoughts...
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Mar 2012 Link to this post

    Hi,

     Do you need hierarchical sorting, filtering in your scenario? If not please consider RadTreeView or RadGridView instead RadTreeListView. The treelist will refresh the internal hierarchical collection on every expand/collapse in order to keep correct hierarchical representation of your data and that is why the expand/collapse is slower compared to both the grid and the treeview.

    All the best,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Greg
    Greg avatar
    22 posts
    Member since:
    Aug 2011

    Posted 30 May 2012 Link to this post

    I agree with Eric in that the expand and collapse performance in this control is abysmal. Even in the simplest of trees, in my app it takes 1-2 seconds to expand or collapse a node. Based on what I read here, I disabled user sorting and filtering, but the performance is still awful. Is it Telerik's position that this particular control's performance cannot and/or will not be improved? If sorting and filtering are the real problem, why wouldn't disabling those features improve performance?

    -Greg
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 31 May 2012 Link to this post

    Hello Greg,

     Please check my post here.

    All the best,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top