
I have a problem with GridView and alternating row style. Everything works great, but when I resize the grid (height) scrollbar appears and when scrolled there is no more alternating row style on part of the grid entries.
This is my style
<Style x:Key="GridViewAlternateRowStyle" TargetType="telerikGrid:GridViewRow">
<Setter Property="Background" Value="#FFEDECD8" />
</Style>
and it is applied here
<telerik:RadGridView Grid.Row="0" x:Name="MainDataGrid"
AutoGenerateColumns="False"
ColumnsWidthMode="Fill"
CanUserReorderColumns="False"
IsFilteringAllowed="False"
ShowGroupPanel="False"
CanUserSortColumns="False"
SelectionChanged="MainDataGrid_SelectionChanged"
Background="White"
IsReadOnly="True"
UseAlternateRowStyle="True"
AlternateRowStyle="{StaticResource GridViewAlternateRowStyle}"
>
I also attached a screenshot of what happens.
Alternating row style is lost on parts of the grid that are invisible at some point (because of scroll action or resizing).
Thank you in advance,
Zarko
7 Answers, 1 is accepted
Unfortunately you are right, we were able to reproduce the problem and it's now logged in our issue tracking system.
We will do our best to include a fix for it as soon as possible - hopefully in this week's internal build. Once again excuse us for the inconvinience caused.
P.S. I've updated your Telerik points for your involvement.
Regards,
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Thank you for your quick response.
Best wishes,
Zarko

Because it is getting really frustrating.
Thanks
What version of our controls are you using? Our last couple of releases (2010 Q1 SP2+) include a lot of fixes for various virtualization and row alternation scenarios.
If you're still encountering this problem with the newest version of our controls, please send us a sample application that demonstrates it and we'll do out best to debug it.
Yavor Georgiev
the Telerik team

Thanks for the quick reply..
I am using 2009.3.1208.1030.
I cannot upgrade to the latest as it is too close to release and not enough time for testing.
Is there a workaround I can implement in my current version?
Thanks
Set the EnableRowVirtualization property on the RadGridView to false. However, this can increase the GridView's memory usage if you display a large number of records.
Greetings,Yavor Georgiev
the Telerik team

You are absolutely right. It SIGNIFICANTLY slows down the system.
I guess this fix will have to wait.
Thanks so much for your help.
Leon