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

[Solved] HeaderCellStyle -RadGridView- To set TextWrapping property to Wrap

1 Answer 258 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
veena
Top achievements
Rank 1
veena asked on 22 Sep 2009, 12:47 PM

We are using the RadGridView in one of the XAML file. The column is a templated one with ControlTemplate set. Its a checkbox control used. The headertext of this gridViewDatacolumn is lengthy that the column is taking much space. Can you help me to have Header TextWrapping set so that the header text appears in 2 rows.I have already tried :
 <telerik:GridViewDataColumn.HeaderCellStyle>
                        <Style TargetType="GridView:GridViewHeaderCell">
                            <Setter Property="TextWrapping" Value="NoWrap" />
                        </Style>
                    </telerik:GridViewDataColumn.HeaderCellStyle>
I have placed this tag inside the <GridViewDataColumn> tag. But this is not working.

Please guide me in this. We are using RadControls Q1 2009 release. Silverlight Version : 3

Thanks in advance
VR
                   

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 22 Sep 2009, 03:22 PM
Hello veena,

Please check this forum post out, you may find it helpful. I'm also attaching the sample application from that forum post which demonstrates how to wrap the header text.

Hope this helps.

Regards,
Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
veena
Top achievements
Rank 1
Answers by
Missing User
Share this question
or