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

[Solved] RadGridView ignores RowStyle when expanding details

1 Answer 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nick
Top achievements
Rank 2
Nick asked on 28 Aug 2010, 07:53 PM
I have a row style that says the row height should be 40 at all times, but as soon as you expand the details row; it collapses to the smallest possible height. How can I force the RadGridView to maintain a height of 40, even when expading details?

Used style:

<telerik:RadGridView.RowStyle>
    <Style TargetType="telerik:GridViewRow">
        <Setter Property="MinHeight" Value="40"/>
    </Style>
</telerik:RadGridView.RowStyle>

Used version: Latest Build (2010.2.821.1040)

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 30 Aug 2010, 01:20 PM
Hi Nick,

That behavior it is normal due to the fact you change the RowStyle and set the height for each row within RowStyle, if you want to maintain the same height when expanding GridViewRowDetails you should create a style for the whole GridView and set the RowHeight property to 40, see the following:
<telerik:RadGridView.Style>
  <Style TargetType="telerik:RadGridView"
    <Setter Property="RowHeight" Value="40"/>
  </Style
</telerik:RadGridView.Style>
    

Please let me know if you need any further assistance.

Regards,
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
Tags
GridView
Asked by
Nick
Top achievements
Rank 2
Answers by
Vanya Pavlova
Telerik team
Share this question
or