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

Grid styling issues

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
szumm
Top achievements
Rank 1
szumm asked on 16 Feb 2011, 11:19 AM

Hi,

i have some trouble with RadGrid styling. I picked up a skin (Windows7 to be exact) and I tried to customize the look'n'feel of it - basically i wanted to disable the AlternateItemStyling so the whole grid would have a white background and i'd like to keep the 'selected' item styling. I set EnableAlternatingItems to false and to my astonishment my whole grid got a gray-blue like (#d7e8fe) background. Ok. So i started to browse the forums and the documentation, found something but it didn't work out for me. 

Cutting the story short - when i set the ItemStyle, AlternatingItemStyle (to Transparent) and SelectedItemStyle(to #d7e8fe) BackColor properties almost everything looks like i want to.. but. Despite i set GridLines to None they still get rendered but that's a minor issue. The major is, when i select an item and then deselect it, RadGrid changes the background color of it back to the gray-blue like ignoring all of my settings. I tried everything, overriding the css styles with the !important switch, setting the colors declaratively, none of it worked as expected.

Sample project can be downloaded from http://www.zumodrive.com/share/ayhoNjVmNT

RadControls version used: 2010.3.1317.35. I'd love to hear some advice from you guys.

Regards,

Rafal

1 Answer, 1 is accepted

Sort by
0
Galin
Telerik team
answered on 18 Feb 2011, 03:48 PM
Hi,

Try removing the following lines:
ASPX:
<ItemStyle BackColor="White" />
<AlternatingItemStyle BackColor="White" />
<SelectedItemStyle BackColor="#d7e8fe" />

And add this styles:
CSS:
.RadGrid_Windows7 tr.rgRow {
    background-color: #fff;
}
 
.RadGrid_Windows7 tr.rgSelectedRow {
    background-color: #d7e8fe;
}

For more question please use our Support Center.

Greetings,
Galin
the Telerik team
Tags
Grid
Asked by
szumm
Top achievements
Rank 1
Answers by
Galin
Telerik team
Share this question
or