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

RowHeight not working

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

Hi, 

I need to force rowheight on a radgridview :

<telerik:RadGridView x:Name="GridCommunication"
                                       AutoGenerateColumns="False"   
IsReadOnly="True" RowHeight="20"
RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" 
AutoExpandGroups="True" ShowColumnSortIndexes="False" CanUserResizeRows="True"
EnableColumnVirtualization="False" RowActivated="GridHistoryPatient_RowActivated" >
                                    <telerik:RadGridView.Columns>
                                        <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"  />
                                    </telerik:RadGridView.Columns>
                                </telerik:RadGridView>

 

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

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Stefan
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.

Regards,
Stefan
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.
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or