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

text color in the header of hyperlinkcolumn

2 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ana
Top achievements
Rank 1
Ana asked on 12 Mar 2009, 03:16 PM
Hi! I've created a custom skin for my radgrid (called it NewDeafult2006) , but I can't change the color of text inside of the header of hyperlinkcolumn. Css classes 

.GridHeader_NewDefault2006

a,

 

.GridHeader_NewDefault2006

td

create styles on headers of all the other columns, but not for the hyperlinkcolumn. How to change that?
Thanks, Ana

 

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Mar 2009, 05:19 PM
Hello Ana,

The following CSS selector should work for all types of columns, as their rendering is the same:

.GridHeader_NewDefault2006,  /* if sorting is NOT used */
.GridHeader_NewDefault2006  a  /* if sorting IS used */
{
     color: red;
}

.GridHeader_NewDefault2006 is a CSS class applied to a <th> element (table header cell), so the following does not make sense:

GridHeader_NewDefault2006  td


For RadGrid Q1 2009 and later, you have to use:

.RadGrid_NewDefault2006  .rgHeader,  /* if sorting is NOT used */
.RadGrid_NewDefault2006  .rgHeader  a  /* if sorting IS used */
{
     color: red;
}


Let us know if you need more information.

Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ana
Top achievements
Rank 1
answered on 13 Mar 2009, 01:34 PM
Thanks! But that wasn't the problem - it was my mistake. I had color set in classes:
th.GridHeader_NewDefault2006,  
th.ResizeHeader_NewDefault2006 
I removed it and it's ok now. Thanks anyway!
Ana

 

 

Tags
Grid
Asked by
Ana
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Ana
Top achievements
Rank 1
Share this question
or