Hi,
we are following all the tips from https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks but we only get a poor performance when filling the grid.
Do you have any further tips for me? I can send a sample app to showcase our problem.
Greetings
Andre
6 Answers, 1 is accepted
Hi Andre,
Thank you for the provided link.
What comes up to my mind is to check if there are binding errors. Such errors could slow down the loading. You can check for them in the Output tab of VS. If this is not the case, you can create a sample application that mimics your set-up and reproduce this delay. This way I can have a better look and debug it on my side.
Regards,
Dinko
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.
Hi Dinko,
we eliminate all binding errors which previously happened when we filled the grid.
I will send you the sample application via direct message.
Thank you very much.
Andre
Okay, no DM available.
You can download the sample app with this link: https://download.mauve.eu/temp/TelerikSample.zip
Please run the project "Mauve System 3 Redesign" and click the button "CLICK HERE".The timings are shown in den output tab of VS.
You can find the most relevant code in TicketlisteViewModel.cs
Greatings
Andre
Hi Andre,
Thank you for the provided project.
It seems that the problem comes from GroupBox which RadGridView is placed in. Removing it the performance of the control is improved. I would suggest replacing the GroupBox with an MS Grid and TextBlock inside which you can use as Header.
<Grid Grid.Row="1"
Grid.ColumnSpan="3"
Margin="0,16,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="My Header"/>
<tk:RadGridView x:Name="DataGrid" Grid.Row="1"
tk:GridViewVirtualizingPanel.IsVirtualizing="True"
tk:PersistenceManager.StorageId="equipmentTreeView"
Regards,
Dinko
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.
Hi Dinko,
thanks very very much for your help!
Can you tell me how you get to the GroupBox as reason for the slowness?
Greatings
Andre
Hello Andre,
I have used a memory profiler to track down the problem. After getting a snapshot, it turns out that measuring the cells took longer than expected. Also, when resizing the RadGridView using the splitter on the right, the control is measuring the cells again. This leads me to think that the Virtualization of the control is not working. After removing the GroupBox, the performance is increased.
Regards,
Dinko
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.