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

Issue with Alternating Row Style

3 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Guy Inwhitenorth
Top achievements
Rank 1
Guy Inwhitenorth asked on 14 Jan 2010, 09:10 PM
I'm having issues with AlternatingRowStyle not being applied as expected when adding or removing items to the underlying ObservableCollection to which the grid is bound via the ItemsSource property.

The grid is sorted such that the newly added items are always at the top and the AlternationCount is set to 2.

When adding a second item, the rows display as expected, but when a third item is added, all rows display with the default style. Removing an item from the list does not cause the other rows to adjust based on their new position.

If I Commit an Edit to a cell in the grid, all rows in the grid will update their style and display as expected.

What could cause this kind of behaviour and how do I fix it?

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 19 Jan 2010, 01:44 PM
Hello Guy Inwhitenorth,

We are currently fixing an issue concerning alternation. Could you please send us a sample project demonstrating your problem so we can verify that our bug fix will resolve the issue. In other words we want to confirm that the bug you are faced with is the same one that we are currently fixing. In case it is a different one -- we will be able to fix it as well if we heave your test case project.

Thanks in advance. We are looking to hearing from you.

Sincerely yours,
Ross
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
Guy Inwhitenorth
Top achievements
Rank 1
answered on 19 Jan 2010, 05:33 PM
In producing a sample project I realized that the issue only seems to come up when applying a sort descriptor to the grid.

How would you like me to send you the sample?
0
Vlad
Telerik team
answered on 20 Jan 2010, 06:59 AM
Hi,

You can open support ticket and attach the project.

Kind regards,
Vlad
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.
Tags
GridView
Asked by
Guy Inwhitenorth
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Guy Inwhitenorth
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or