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

[Solved] alternate row color

2 Answers 215 Views
Grid
This is a migrated thread and some comments may be shown as answers.
IT Development
Top achievements
Rank 1
IT Development asked on 16 Jul 2009, 09:52 AM

Hello,

 

Trying to create a custum theme for my radgrid using the new visual theme builder.

 

I cant figure out the following:

 

I want a alternate row color.

But when the alternate row gets selected or hovered the color should change to the row selected or hovered color.

 

How can I realize this?

 

Kind regard,

 

Tim van Rooijen

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 16 Jul 2009, 12:35 PM
Hi Tim,

You should make sure that the hover and selected state styles in the RadGrid CSS file come after the alternating row styles and that the alternating row styles haven't got higher specificity than the hover/selected state styles.

In addition, the hover styles must come after the selected state styles, if you want to have hover styles applied to selected rows.

More information about specificity is available at the end of this article (see the hyperlinks):

http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx


You can use one of our embedded RadGrid skins as a reference. Take a look at the /Skins/ subfolder of your RadControls installation location (or ZIP file).

Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
IT Development
Top achievements
Rank 1
answered on 21 Jul 2009, 02:58 PM
thanks for the reply,
it worked

Greetings Tim
Tags
Grid
Asked by
IT Development
Top achievements
Rank 1
Answers by
Dimo
Telerik team
IT Development
Top achievements
Rank 1
Share this question
or