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

radgrid header is not picking up the css

3 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prasad
Top achievements
Rank 1
Prasad asked on 22 Dec 2011, 07:39 AM
Hi ,

I have given the attribute like this
HeaderStyle-CssClass="tdheaderblue"
 ItemStyle-CssClass="tdheaderbluefirst"


where the tdheaderblue is a css class


.tdheaderblue th
{
background-color: #d5e2e9;
height: 16px;
color: #414141;
font-size: 12px;
border-right: 1px solid White;
padding: 3px 10px 3px 10px;
text-align: center;
}


but the items are able to pickup the css, but the header is not able to pickup the css.


Can any one please help me out ?


Thanks in advance !


regards,
Prasad Jidugu

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Dec 2011, 08:05 AM
Hello,

Try overriding default style with "!important".
CSS:
<style type="text/css">
 .tdheaderblue
    {
      color:Red !important;
    }
 </style>

Thanks,
Princy.
0
Prasad
Top achievements
Rank 1
answered on 23 Dec 2011, 07:47 AM
Hi Princy,

Thanks for your reply.

But..

Even when i overwritte the default css by using ( "!important")
but even then, it is not picking the css.

Can you please help me to fix this .

Thanks in advance !

regards,
Prasad.
0
Pavlina
Telerik team
answered on 23 Dec 2011, 04:52 PM
Hello,

You need to remove the built-in image to be able to set the desired styles. I am also attaching a sample working project  which demonstrates how you can achieve your goal.

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
General Discussions
Asked by
Prasad
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Prasad
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or