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

[Solved] Styling GridViewCell in Q3 gives bad performance

2 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ole
Top achievements
Rank 1
Ole asked on 04 Feb 2010, 01:15 PM
I'm testing a RadGridView control with 15 columns and 69 rows.
Using latest internal build.. (2009_3_1329)

Because I wanted to remove the yellow "selected cell color", I styled the GridViewCell, and put that style on each column in the GridView. That made the sorting of columns to go from 0,5-1 sec to 6 sec.
I then tried removing all the GridViewCell styles, and the sorting performance was back to 0,5-1 sec.

Used the style from this telerik solution. (zip file in the bottom) as a basis.
Just changed the color in "Current" to transparent.

Is there a way to get around this performance problem?

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan Dobrev
Telerik team
answered on 08 Feb 2010, 11:29 AM
Hello Ole,

I have tested this as you have described with the latest internal build but it is performing well on my side. Please find attached my sample project, which has the current cell background set to transparent.

Kind regards,
Stefan Dobrev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Ole
Top achievements
Rank 1
answered on 08 Feb 2010, 02:23 PM
Thanks!
I solved the issue after looking at the demo project you posted. I found out that a line which defined a telerik converter had gone missing from my style file. The extreme delay was caused by 18 "silent" exceptions (one for each column) that was thrown to output every time the column got sorted. Visual Studio didn't give me any warning that the static resource was not found, and the application behaved like normal except for the extreme delay.

Now it works like a charm =)
Tags
GridView
Asked by
Ole
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Ole
Top achievements
Rank 1
Share this question
or