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

Slowness rendering data in grid

1 Answer 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael Evans
Top achievements
Rank 1
Michael Evans asked on 08 Sep 2011, 03:29 PM
We are seeing some fairly major slowness when rendering data in a GridView.  This is especially noticeable on slower client machines, where it seems to be taking about 6-8 seconds to render all the data in a grid.  There is not a huge amount of data, it's about 10 rows and around 15 columns.

I have read your article on degraded grid view performance and have made the following enhancements:
- Discontinued use of converters.
- No longer using RowStyle or AlternateRowStyle.  Instead I am using an implicit style.

Unfortunately we are using CellTemplates and we will continue to have to do so.  The data displayed in the grid columns is very rich and any individual cell may have a unique background color, foreground color, format style (bold, underline, etc.), may blink (using a storyboard and animation) and so forth.  Plain and simple text binding will not be possible for this grid.  Our cell template's data template has a reference to our own user control that basically displays a Grid and TextBlock with the appropriate properties set.

I have run the application through a profiler tool and it appears that the methods which are taking the most time are:
Telerik.Windows.Controls.GridView.GridViewScrollViewer.MeasureOverride
Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride

inside this last method, the method Telerik.Windows.Controls.GridView.GridViewCellsPanel.InsertContainer seems to be taking a long time.

I'm pointing these out in hopes that you can give some advice on what we can do to improve the performance.

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 15 Sep 2011, 08:59 AM
Hello Michael Evans,

Indeed, the scenario you are describing is heavy and the performance problems are possible. But we are not sure whether they are RadGridView related. We will be glad to help you with some suggestions and guides depending on the solution. Will it be possible to send us a project which cover your scenario so we can provide you with accurate assistance? To do this, you need to open a separate support ticket and to attach it there.
 
Regards,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Michael Evans
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or