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

GridView alternating row style

7 Answers 189 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zarko Vorkapic
Top achievements
Rank 1
Zarko Vorkapic asked on 10 Nov 2009, 12:35 PM
Hi,

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

Sort by
0
Missing User
answered on 10 Nov 2009, 03:26 PM
Hi Zarko Vorkapic,

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,

Anastasia
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.
0
Zarko Vorkapic
Top achievements
Rank 1
answered on 10 Nov 2009, 03:39 PM
Hi,

Thank you for your quick response.

Best wishes,
Zarko
0
Leon
Top achievements
Rank 1
answered on 16 Jul 2010, 03:43 PM
Has there been a solution to this issue?

Because it is getting really frustrating.

Thanks
0
Yavor Georgiev
Telerik team
answered on 16 Jul 2010, 03:53 PM
Hello Leon,

 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.

Best wishes,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Leon
Top achievements
Rank 1
answered on 16 Jul 2010, 03:56 PM
Hey,

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
0
Yavor Georgiev
Telerik team
answered on 16 Jul 2010, 03:59 PM
Hi Leon,

 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Leon
Top achievements
Rank 1
answered on 16 Jul 2010, 04:17 PM
Hey Yavor,

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
Tags
GridView
Asked by
Zarko Vorkapic
Top achievements
Rank 1
Answers by
Missing User
Zarko Vorkapic
Top achievements
Rank 1
Leon
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Share this question
or