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

[Solved] Header Colour Customization

3 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Naren
Top achievements
Rank 1
Naren asked on 11 Nov 2010, 10:37 AM
Hi Telerik Team,
I want to change the Background color of Grid Headers.
By Default its black and i want to change it to green.
Please find attached image.
How can i achieve this.




Thanks,
Naren.

3 Answers, 1 is accepted

Sort by
0
Naren
Top achievements
Rank 1
answered on 12 Nov 2010, 07:30 AM
Hi,
I got solution for this...
We just need to set following style in <UserControl.Resources>
<Style TargetType="telerik:GridViewHeaderCell">
           <Setter Property="Background" Value="Green" />
 </Style>

Thats it,the header color will get changed.......
---------------------------------------------------------------------------------------------------
Can you help me for

Docking control Customization


Please reply for my post(Query) on following link
http://www.telerik.com/community/forums/silverlight/docking/docking-control-customization.aspx

Thanks ,
Naren.
0
Vanya Pavlova
Telerik team
answered on 15 Nov 2010, 07:12 AM
Hi Naren,


You can change the Background property of both GridViewHeadeCell through defining a very simple style and set its background property to the brush you want to use. You can do the same for GridViewHeaderRow.
If the final result does not satisfy your requirements, you should edit the template of GridViewHeaderCell or respectively the template of GridViewHeaderRow in the way you need. You can read more about this here.
Also I have prepared an example for you that demonstrates this approach.


Greetings,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dani
Telerik team
answered on 15 Nov 2010, 07:26 AM
Hi Naren,

If you wish to customize RadDocking control, I think the information in this article is a good place to start.

If you encounter any difficulties or have any specific questions regarding RadDocking customization, please open a separate support ticket / forum thread in the Docking section.

Best wishes,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Naren
Top achievements
Rank 1
Answers by
Naren
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Dani
Telerik team
Share this question
or