Problem: you want to use one of the Telerik skins (e.g. Sunset) for styling but don't like the garish colouring used to show selected rows in a RadGrid.
Solution: you can "undo" the selected-row styling with these style-sheet commands:
This effectively counteracts the styles coming from the .rgSelectedRow class (and used by the skin) by re-inserting the normal (i.e., non-selected) styles in all circumstances ("!important").
Note that I haven't tried this for other skins; I am assuming it will be similar, however, although the border colours will obviously need to be changed.
Solution: you can "undo" the selected-row styling with these style-sheet commands:
.RadGrid_Sunset .rgRow td
{
border-color
:
#FFFFFF
#FFFFFF
#FFFFFF
#CABAAB
!important
;
}
.RadGrid_Sunset .rgAltRow
{
background
:
none
repeat
scroll
0
0
#F1E9DC
!important
;
}
.RadGrid_Sunset .rgAltRow td
{
border-color
:
#F1E9DC
#F1E9DC
#F1E9DC
#CABAAB
!important
;
}
.RadGrid_Sunset .rgRow
{
background
: inherit
!important
;
}
.RadGrid_Sunset .rgRow td, .RadGrid_Sunset .rgAltRow td
{
border-left
:
solid
1px
#CABAAB
!important
;
padding-left
:
7px
!important
;
}
/* finally, need to put this one back in */
.RadGrid_Sunset .rgHeader:first-child, .RadGrid_Sunset th.rgResizeCol:first-child, .RadGrid_Sunset .rgFilterRow > td:first-child, .RadGrid_Sunset .rgRow > td:first-child, .RadGrid_Sunset .rgAltRow > td:first-child
{
border-left
:
0
none
!important
;
padding-left
:
8px
!important
;
}
This effectively counteracts the styles coming from the .rgSelectedRow class (and used by the skin) by re-inserting the normal (i.e., non-selected) styles in all circumstances ("!important").
Note that I haven't tried this for other skins; I am assuming it will be similar, however, although the border colours will obviously need to be changed.