Customize CSS for RadGrid

3 posts, 0 answers
  1. Ashwin
    Ashwin avatar
    5 posts
    Member since:
    Sep 2011

    Posted 20 Sep 2011 Link to this post

    Hi,

    I have a SharePoint 2010 visual webpart created using RadGrid control. Now I wish to apply custom css such that it forces the "theme" colors for Header background, border color, Row background and Alternate Row background.  (I tried for an aspx page using custom skin and it was working fine). I would appreciate if the steps be provided on how can this functionality be achieved for SharePoint.
  2. Bodevain Svensson
    Bodevain Svensson avatar
    195 posts
    Member since:
    May 2006

    Posted 21 Sep 2011 Link to this post

    How about applying higher css specificity for the certain grid elements you mentioned, as said in this blog post? Although I am not that into SharePoint, setting weight to the styles in this way via your global SP style definitions should work, I guess.

    Bodevain

  3. Ashwin
    Ashwin avatar
    5 posts
    Member since:
    Sep 2011

    Posted 21 Sep 2011 Link to this post

    Hi Bodevain

    Thanks for the reply. My aim is to apply theme so the look and feel varies from site to site. So, custom CSS file has to be placed under StyleLibrary>Language>Themable. Hence, inline style may not work in this case.
Back to Top