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

Vertical Column Headers with filter row

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Myroslav
Top achievements
Rank 1
Myroslav asked on 07 Mar 2014, 08:30 PM
Hello, 

We are using Telerik for WPF 2013 Q3 NET.
We need to have a vertically oriented text in the grid header row AND a fiter row underneath the header row. The example of what it should look like is attached.

Currently, I set up filter row like so: 

<telerik:RadGridView x:Name="trgv"                             
                             FilteringMode="FilterRow"                             
                             IsFilteringAllowed="True"/>

When I run the app, it looks great. Now, we need to have a text in the header row aligned vertically. For that I do the following:

<telerik:RadGridView x:Name="trgv"                             
                             FilteringMode="FilterRow"                             
                             IsFilteringAllowed="True">

            <telerik:RadGridView.Resources>
                <Style TargetType="telerik:GridViewHeaderCell">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="telerik:GridViewHeaderCell">
                                <ContentPresenter>
                                    <ContentPresenter.LayoutTransform>
                                        <RotateTransform Angle="270" />
                                    </ContentPresenter.LayoutTransform>
                                </ContentPresenter>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Height" Value="200"></Setter>
                </Style>
            </telerik:RadGridView.Resources>

Now, when I run the app, the header text is occupying both the filter row and the header row AND my filters do not appear at all.

Thank you for your help!











1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 11 Mar 2014, 11:05 AM
Hello Myroslav,

I have already answered your other forum thread containing the same question.

Regards,
Yoan
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
GridView
Asked by
Myroslav
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or