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

rotation of the header text

2 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 20 Oct 2010, 01:46 PM
Hello,
I'm trying to display many columns with a small width and need the header text to be vertical. how can I do this?

Thanks
Adrian

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 22 Oct 2010, 11:25 AM
Hello Adrian,


This is rather delicate case, if you want to rotate the header text it is quite simple to edit the template of GridViewHeaderCell and rotate the ContentControl named ContentPresenter to the specified angle. If you do that you will see that the text is cut. So that you should adjust not only the ContentPresenter, but you should also adjust the whole structure of the GridViewHeaderCell,GridViewHeaderRow and RadGridView. I have prepared an example for you that demonstrates this approach.

Please check the attached project and if you need any further assistance let me know.

Best wishes,
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
Peter van Rees
Top achievements
Rank 1
answered on 12 Sep 2011, 02:15 PM
Hi,

I had a look at this example. It addresses all columns of a grid. Is there a way to apply the rotated style only to a selected number of columns?
Thanks,

Peter
Tags
GridView
Asked by
Adrian
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Peter van Rees
Top achievements
Rank 1
Share this question
or