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

HeaderCellStyle and metro theme

2 Answers 146 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Aurélien
Top achievements
Rank 1
Aurélien asked on 29 Mar 2012, 10:27 AM
Hi all,

I have a problem with custom headercellstyle and applied theme.
I generate grid columns in runtime, and affect a style on header cell to set tooltip property.

var headerStyle = new Style(typeof(GridViewHeaderCell));
headerStyle.Setters.Add(new Setter(GridViewHeaderCell.ToolTipProperty,
new Binding("HeaderToolTip") { Source = columnModel }));
column.HeaderCellStyle = headerStyle;

My grid use the metro theme but header are using the default theme (office black). If I comment previous code snippet, header use the metro theme.
What am I doing wrong?

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 29 Mar 2012, 10:36 AM
Hello Aurelien,

 
Actually it is not a good idea to set the tooltip of GridViewHeaderCell in this way. It would be much more appropriate to predefine the Header of the column rather than in a style.
Please check the following forum thread for further reference. 



Regards,
Vanya Pavlova
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Aurélien
Top achievements
Rank 1
answered on 29 Mar 2012, 04:00 PM
It's ok I have affected header and it's work.
Thanks
Tags
GridView
Asked by
Aurélien
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Aurélien
Top achievements
Rank 1
Share this question
or