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

Performance on expand/close...

3 Answers 275 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 22 Mar 2012, 10:53 PM
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...

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Mar 2012, 08:10 AM
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 >>
0
Greg
Top achievements
Rank 1
answered on 30 May 2012, 05:19 PM
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
0
Vlad
Telerik team
answered on 31 May 2012, 06:26 AM
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 >>

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