How to give a color to the Column Header in Telerik RadGrid

后端 未结 4 2094
一生所求
一生所求 2021-01-22 05:07

I have created a telerik RadGrid in asp .net. My requirement is to give my own color to Column header. How can we achieve this...? Below is the code structure I\'m using.

<
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-22 05:25

    I had the same issue and even after overriding the class, the header color did not change.

    .RadGrid_Default .rgHeader { background-color: rgb(236, 89, 91); }
    

    I found that my overridden background was re-overridden by Grid. I used !important keyword not to allow Grid to re-override my class

    .RadGrid_Default .rgHeader { background-color: rgb(236, 89, 91) !important; }
    

    Same you can do for any class!

提交回复
热议问题