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

RowHeight not working

1 Answer 58 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Thomas asked on 03 Dec 2018, 03:48 PM


I need to force rowheight on a radgridview :

<telerik:RadGridView x:Name="GridCommunication"
IsReadOnly="True" RowHeight="20"
RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" 
AutoExpandGroups="True" ShowColumnSortIndexes="False" CanUserResizeRows="True"
EnableColumnVirtualization="False" RowActivated="GridHistoryPatient_RowActivated" >
                                        <telerik:GridViewDataColumn Header="Type" DataMemberBinding="{Binding Type}" UniqueName="Type"  IsReadOnly="True"  />
                                        <telerik:GridViewDataColumn Header="Dest." DataMemberBinding="{Binding Destinataire}" UniqueName="Dest"  IsReadOnly="True"  />
                                        <telerik:GridViewDataColumn Header="Contenu" DataMemberBinding="{Binding Contenu}" UniqueName="Contenu"  IsReadOnly="True"  />
                                        <telerik:GridViewDataColumn Header="Etat" DataMemberBinding="{Binding Etat}" UniqueName="Etat"  IsReadOnly="True"  />
                                        <telerik:GridViewDataColumn Header="DateEnvoi" DataMemberBinding="{Binding DateEnvoi,StringFormat='dd/MM/yy HH:mm:ss'}" UniqueName="DateEnvoi"  IsReadOnly="True"  />
                                        <telerik:GridViewDataColumn Header="Commentaire" DataMemberBinding="{Binding Commentaire}" UniqueName="Commentaire"  IsReadOnly="True"  />


But the Row autosize and don't respect the RowSize i have specified.



1 Answer, 1 is accepted

Sort by
Telerik team
answered on 06 Dec 2018, 12:53 PM
Hello Thomas,

Thank you for the attached image.

I tested the behavior of the control and on my end the value set for the RowHeight property is applied as expected. You can check this out in the attached sample application. My best guess for the RowStyle  property not to be applied is that there might be a separate Style targeting GridViewRow through which the Height of the row is also set. Note, that with such setup the value applied through the external Style will be respected as it is the latter one applied.

Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question