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

grid header font color on sortable column

2 Answers 203 Views
Grid
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 16 Mar 2016, 02:21 AM

hi

I am applying a background color to all grid using this;

<style type="text/css">
      .RadGridHeaderStyle
        {
            background-color:#5e9cd2 !important;
            background-image:none !important;
            font-weight:bold !important;
            color:white !important;
        }

</script>

The header background color work fine but the font color on some columns don't seems to apply. I realised that it is because the column is sortable and the color won't change to white. How should make the sortable header font color to white? Thanks

2 Answers, 1 is accepted

Sort by
0
L
Top achievements
Rank 1
answered on 16 Mar 2016, 02:25 AM

hi

I have found the answer:

.RadGrid_Metro .rgHeader a

    {
       color: White !important;
    }

0
Viktor Tachev
Telerik team
answered on 17 Mar 2016, 10:51 AM
Hi,

I am glad that you have the required look.

On a side note, have in mind that using !important is not recommended in most cases as it can break the default cascading behavior of the styles. Please examine the following article that elaborates on the matter in more detail:



Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
L
Top achievements
Rank 1
Answers by
L
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or