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

RadGrid CSS

2 Answers 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Swati
Top achievements
Rank 1
Swati asked on 08 Aug 2011, 11:01 AM
I am trying to override the default CSS for RadGrid but still it is taking the Original RadGrid_Default style effects.Please let me know where to modify.
Waiting for response.

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 08 Aug 2011, 11:03 AM
Hello Swati,

  • for generate a new skin.

Please set EnableEmbeddedSkins to false and set your skin="YourCustomSkinName"

http://www.telerik.com/help/aspnet-ajax/introduction-create-custom-skin.html

  • if you overwrite any particular class then example shown in below.
<style>
.RadGrid_Default  .Classname{
    color#333333 !important;
}
</style>



Let me know if you have any concern.

Thanks,
Jayesh Goyani
0
Shinu
Top achievements
Rank 2
answered on 08 Aug 2011, 11:06 AM
Hello Swati,

Inorder to override you should use !important as shown below.
CSS:
<style type="text/css">
Radgrid_Default
{
 background-color: Blue !important;
 color: Red !important;
}
</style>

Thanks,
shinu.
Tags
Grid
Asked by
Swati
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Shinu
Top achievements
Rank 2
Share this question
or