RowHeight not working

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    20 posts
    Member since:
    Jun 2010

    Posted 03 Dec 2018 Link to this post


    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.



  2. Stefan
    Stefan avatar
    1073 posts

    Posted 06 Dec 2018 Link to this post

    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.
Back to Top