Yet another Grid performance issue

2 posts, 0 answers
  1. Zsolt
    Zsolt avatar
    2 posts
    Member since:
    Oct 2012

    Posted 17 Feb Link to this post

     I know grid performance has been discussed many times, but I could not derive a solution so far from those posts.

    The scenario is very simple, we have to show 20 items in a grid. The data paging responsibility is ours, the grid sees only 20 rows.

    When the ItemsSource changes, 1-2 sec is needed for the grid to display the new results.

    The performance is bad regardless of Virtualization settings (and 20 rows do not need virtualization at all naturally).

    Fixed Height and With do not help, I think this is not the usual infinite height MeasureOverride issue.

    I have attached DotTrace and VS profiler traces, so you can see the problematic paths.
    The profiler pinpoints MeasureOverride at the surface. Most posts about grid performance revolve around this.
    However, when we dig deeper we see creating each datagrid row took about 50ms.
    For 20 rows this is 1sec. This explains the perceived delay.
    The attached dottrace images show that LoadContent is called many hundred times, this is what actually eats the time.

    Now, it is your turn to explain what I can do to avoid this big performance overhead.

    Tell me if you need more profiling data from me.


  2. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    756 posts

    Posted 22 Feb Link to this post

    Hello Zsolt,

    Thank you for the shared pictures. 

    I tried to replicate the same scenario on my end, however I am afraid that I was not able to do so. On my side, the RadGridView is refreshed smoothly after updating the ItemsSource. That is why I am attaching the project that I used for testing purposes.

    Can you check it out and see how it differs from the setup on your end? If you find it possible, can you modify the project in order to reproduce the observed on your end behavior and send it back (you can do that in the support ticket that you opened, since project files cannot be attached to forum posts)? This will hopefully allow me to investigate the scenario on my end and better assist you. 

    Thank you in advance for any help you can provide.

    Vladimir Stoyanov
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at

Back to Top