RadGridView gets wrong height when with RowDetails is expanded

1 Answer 107 Views
GridView
Vsevolod
Top achievements
Rank 1
Iron
Iron
Vsevolod asked on 09 Nov 2022, 10:18 AM

Hi

I am faced with the following problem.

The height is set in the style definition:

 <Style x:Key="clubsGridRowBackground"
			       BasedOn="{StaticResource GridViewRowStyle}"
			       TargetType="telerik:GridViewRow">
      <Setter Property="MinHeight" Value="70" />
</Style>

In the GridView parameters, the style is bound as follows:

  RowStyle="{StaticResource clubsGridRowBackground}"
If RowDetails is collapsed, than row height is 70, but if RowDetails  is expanded, than height becomes smaller (decreases to the old value). 

The problem is reproduced, for example, in a project RowDetailsTemplateSelector (samples for WPF) if you apply the style.

The same behavior occurs when used standard WPF DataGrid.

Is there a solution to this problem for Telerik RadGridView?

Martin Ivanov
Telerik team
commented on 11 Nov 2022, 09:35 AM

I would recommend you to use the RowHeight property of RadGridView, when you need to change the height. This is because of the UI virtualization of the control and the index tree used internally. Changing the height of the row without modifying the RowHeight accordingly may lead to issues like the one you are experiencing.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vsevolod
Top achievements
Rank 1
Iron
Iron
answered on 09 Nov 2022, 10:45 AM
But problem does not reproduced if RowHeight property of GridView is used
Tags
GridView
Asked by
Vsevolod
Top achievements
Rank 1
Iron
Iron
Answers by
Vsevolod
Top achievements
Rank 1
Iron
Iron
Share this question
or