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

Selected row color remains after new row selected

1 Answer 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
OverCoded
Top achievements
Rank 2
OverCoded asked on 13 May 2010, 04:18 PM
I am fairly new to telerik, and I am using a custom RadGrid with a fill color for the selected row set in the VSB. I also have alternating row color set and customized with the following line of code:

((

GridTableElement)this.radGridView1.GridElement).AlternatingRowColor = Color.DarkGray;
The problem is that when I select a new now the previous row color remains the “selected row” color and does to drop back to the default row color. This is does not affect the alternating row. Why? Am I missing something?

 

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 18 May 2010, 12:14 PM
Hello Mark Coe,

Thank you for contacting us.

Please, take a look at this article for property precedence rules. The issue in your theme most likely is due to the following behavior of the properties:

"The properties' values applied for a state are not reset when a control goes to another state. There should be values in the new state which explicitly override the values from the previous state."

This behavior is used for achieving better performance.

Please, check if there is a missing fill color for the GridDataRowElement default state in your theme. The alternating row has its default value in your case (set in the code). That is why it does not face the same issue.

I hope it will help you to fix your theme. Please, write back if you have additional questions.

Regards,
Alexander
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.
Tags
GridView
Asked by
OverCoded
Top achievements
Rank 2
Answers by
Alexander
Telerik team
Share this question
or