Grid styling issues

2 posts, 0 answers
  1. szumm
    szumm avatar
    13 posts
    Member since:
    May 2010

    Posted 16 Feb 2011 Link to this post

    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

  2. Galin
    Admin
    Galin avatar
    526 posts

    Posted 18 Feb 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top