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

Customize CSS for RadGrid

2 Answers 59 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Ashwin
Top achievements
Rank 1
Ashwin asked on 21 Sep 2011, 12:25 AM
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 Answers, 1 is accepted

Sort by
0
Bodevain Svensson
Top achievements
Rank 1
answered on 21 Sep 2011, 09:53 AM
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
0
Ashwin
Top achievements
Rank 1
answered on 21 Sep 2011, 02:30 PM
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.
Tags
Sharepoint Integration
Asked by
Ashwin
Top achievements
Rank 1
Answers by
Bodevain Svensson
Top achievements
Rank 1
Ashwin
Top achievements
Rank 1
Share this question
or