Yes, This is right bcoz css in header <a> inheriting from parent. So suppose if parent is Table or TD then and somewhere you have declare css for <a> then it will take first as priority and then override you "rgHeader a" css. So by !important flag you can
change priority so it will now apply css from "rgheader a" class.
Regards,
Shailesh
If This post helps you to solve your problem please mark this as an answer.
Member
15 Points
30 Posts
changing font color
Apr 26, 2010 04:49 PM|CraigGiles|LINK
I can't change the font color for Employer name unless I use !important
Participant
1322 Points
496 Posts
Re: changing font color
Apr 27, 2010 01:30 AM|shailesh soni|LINK
Hi,
Use HeaderStyle tag in that column and give cssClass to it.
<telerik:GridBoundColumn DataField="EmployerName" AllowSorting="true" HeaderText="Employer Name"
Shailesh
If This post helps you to solve your problem please mark this as an answer.
Member
15 Points
30 Posts
Re: changing font color
Apr 27, 2010 09:30 AM|CraigGiles|LINK
The only way I could make it work was to add important.
Why is this?
Participant
1322 Points
496 Posts
Re: changing font color
Apr 28, 2010 12:20 AM|shailesh soni|LINK
Yes, This is right bcoz css in header <a> inheriting from parent. So suppose if parent is Table or TD then and somewhere you have declare css for <a> then it will take first as priority and then override you "rgHeader a" css. So by !important flag you can change priority so it will now apply css from "rgheader a" class.
Shailesh
If This post helps you to solve your problem please mark this as an answer.