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
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
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.
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?
I submitted a ticked for this:
https://feedback.telerik.com/wpf/1451539-sortperformance-degrades-when-grouping-is-involved
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
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
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?