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

Loading 50 rows into the RadGridView takes about 1.100 ms

6 Answers 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 11 May 2020, 09:08 AM

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

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 14 May 2020, 06:41 AM

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

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
n/a
Top achievements
Rank 1
answered on 14 May 2020, 08:06 AM

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

0
n/a
Top achievements
Rank 1
answered on 14 May 2020, 08:12 AM

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

0
Dinko | Tech Support Engineer
Telerik team
answered on 18 May 2020, 12:49 PM

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

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
n/a
Top achievements
Rank 1
answered on 19 May 2020, 04:32 AM

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








0
Dinko | Tech Support Engineer
Telerik team
answered on 20 May 2020, 12:25 PM

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

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
GridView
Asked by
n/a
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
n/a
Top achievements
Rank 1
Share this question
or