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

RadGrid set command line background color

2 Answers 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phil H.
Top achievements
Rank 2
Phil H. asked on 16 Feb 2016, 03:24 PM

Hi All:

How to set the RadGrid command line background color?  I am using the MetroTouch and I do not like the black header.  I've tried the following:

.RadGrid_MetroTouch thead {
    background-color: #25a0da;
}

Phil

2 Answers, 1 is accepted

Sort by
0
Phil H.
Top achievements
Rank 2
answered on 16 Feb 2016, 05:47 PM

Found it:

.RadGrid_MetroTouch tr.rgCommandRow
{ background-color: #25a0da; }

Phil

0
Viktor Tachev
Telerik team
answered on 19 Feb 2016, 11:34 AM
Hi Phil,

I am glad that you have found a solution. Thank you for sharing it so anyone trying to apply similar behavior would be able to use the approach.

Generally when modifying the default styles for the controls with CSS you should use a rule with specificity that is higher than the default. Check out the following resources that describe specificity in more detail.


Also you may find the following cheat-sheet useful:




Regards,
Viktor Tachev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Phil H.
Top achievements
Rank 2
Answers by
Phil H.
Top achievements
Rank 2
Viktor Tachev
Telerik team
Share this question
or