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

Bad performance with grouping

6 Answers 340 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mayaffit
Top achievements
Rank 1
Mayaffit asked on 10 Sep 2019, 03:49 PM

Hello,

We have a performance issue with RadGridView when using telerik's grouping.

For example:

Sorting can take about 4 seconds. while sorting without grouping, lasts less then a second.

The same issue happens when clearing the ItemSource and then use AddRange of several items.

The JetBrains dotTrace shows that most of the time spent in "Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(size)"  - 2471 milliseconds. The same operation lasts 79 Milliseconds without grouping.

We defined the gridview with the following:

GroupRendererMode = "Flat"

VirtualizingPanel.IsVirtualizingWhenGrouping = "True"

VirtualizingPanel.IsVirtualizing = "True"

VirtualizingPanel.VirtualizationMode= "Recycling"

EnableRowVirtualization="True"

EnableColumnVirtualization="True"

In addition,  the height and the columns width are fixed size.

We hope you can help us.
Thank you in advance.

 

 

6 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 13 Sep 2019, 10:13 AM

Hello Mayaffit,

Thank you for the provided information.

I tried replicating the performance issue at my end with the same settings, however, the JustTrace performance profiler does not indicate any delay in the GridViewVirtualizingPanel.MeasureOverride method. I'm attaching a screenshot of the profiling results for your reference.

I'm also attaching the sample project which I set up for the test. Can you please have a look at it and let me know if I'm missing something of importance?

Thank you in advance for your cooperation on the mater.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
LindenauAtSOG
Top achievements
Rank 2
answered on 30 Jan 2020, 07:15 AM
We are having the same issue.
Also it is not reproducable when you put a naked GridView into a naked WPFApp.
I've been investigating this for two days now and couldnt find any clues except that it only appears when grouping is involved.

0
LindenauAtSOG
Top achievements
Rank 2
answered on 30 Jan 2020, 07:20 AM
This is a screenshot from dotTrace.

From debugging into your code I could find out that this happens because GridViewDataControl gets a Reset and then proceeds to destroy all virtualized containers in itsOnItemsChanged since ShouldDestroyContainersOnReset returns true.
If that is correct when grouping, thant RealizeAndMeasure is taking too much time?
0
LindenauAtSOG
Top achievements
Rank 2
answered on 30 Jan 2020, 10:26 AM

I submitted a ticked for this:
https://feedback.telerik.com/wpf/1451539-sortperformance-degrades-when-grouping-is-involved

0
Dinko | Tech Support Engineer
Telerik team
answered on 03 Feb 2020, 03:18 PM

Hello Christian Lindenau,

Thank you for the provided details and project.

We are currently investigating this behavior and we need more time. We will contact you again in the next couple of days with further information regarding this scenario.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dilyan Traykov
Telerik team
answered on 05 Feb 2020, 03:41 PM

Hello Christian,

I just responded to the bug report you opened. May I kindly ask you to continue any further communication on the matter there?

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ZHANGWEIZI
Top achievements
Rank 1
commented on 15 Feb 2022, 06:30 AM

I encounted the same issue, is there any solution for it?
Stenly
Telerik team
commented on 17 Feb 2022, 03:55 PM

Hello ZHANGWEIZI,

Could you provide a bit more information on the exact scenario, in which this behavior is observed? Also, could you specify the used version of our assemblies? Finally, could you try to isolate this into a sample project, so I could debug it on my end? 

Tags
GridView
Asked by
Mayaffit
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
LindenauAtSOG
Top achievements
Rank 2
Dinko | Tech Support Engineer
Telerik team
Share this question
or