HeaderCellStyle -RadGridView- To set TextWrapping property to Wrap

2 posts, 0 answers
  1. veena
    veena avatar
    32 posts
    Member since:
    Mar 2009

    Posted 22 Sep 2009 Link to this post

    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
                       

  2. Missing user
    Missing user avatar

    Posted 22 Sep 2009 Link to this post

    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.
Back to Top