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

Header Row height

1 Answer 214 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yu
Top achievements
Rank 1
Yu asked on 20 Sep 2012, 10:22 AM
Hi,

We are using the code below to adjust Header Row and Group Panel height.

<Grid.Resources>

 

 

 

 

<Style TargetType="telerik:GridViewHeaderRow">

 

 

 

 

<Setter Property="MinHeight" Value="25"/>

 

 

 

 

<Setter Property="Height" Value="25" />

 

 

 

 

</Style>

 

 

 

 

<Style TargetType="telerik:GridViewGroupPanel">

 

 

 

 

<Setter Property="MinHeight" Value="25" />

 

 

 

 

<Setter Property="Height" Value="25" />

 

 

 

 

</Style>

 

 

 

 

</Grid.Resources>

 

 

 

 

After upgrading to the latest control version to get the Group Panel height working, the Header Row height started to behave differently then the previous version.

In the previousl version, the Header Row height is redueced by reducing the padding space around the header text.

In the latest verison, the Header Row height is reduced by reducing the padding space only from the bottom of the header text.

Did I miss any thing?

Thanks

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 21 Sep 2012, 08:32 AM
Hello Yu,

This behavior is caused by GridView's feature Filter row introduced with Q2 2012. In order to avoid it and in case you do not want to use this feature, you can remove the code related to the Filter row in both GridViewHeaderCell and GridViewHeaderRow styles. Attached you can find a project demonstrating the approach. You can also customize GridViewHeaderCell by defining your own style. 


Kind regards,

Vera
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
GridView
Asked by
Yu
Top achievements
Rank 1
Answers by
Vera
Telerik team
Share this question
or