grid header font color on sortable column

3 posts, 0 answers
  1. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 15 Mar Link to this post

    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. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 15 Mar in reply to L Link to this post

    hi

    I have found the answer:

    .RadGrid_Metro .rgHeader a

        {
           color: White !important;
        }

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 17 Mar Link to this post

    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.
Back to Top