Application Freezes if RadGridView RowHeight set to 17

0 Answers 36 Views
GridView
Manohar
Top achievements
Rank 1
Manohar asked on 14 Jul 2021, 01:45 PM

Hi All,

We are using 2016.1.217.45 version of Telerik. We are setting the row height based on the value selected in the combo box. 

While loading the content, application freezes. It seems to be issue with scroll functionality. Below are our observations:

  1. When RadGridView row height is set to 17 application freezes.
  2. When I removed the RowHeight change completed no freeze is observed.
  3. When I change the RowHeight to 18 no freeze is observed.
  4. When I leave the RowHeight as 17 and disabled the Row virtualisation for RadGridView no freeze is observed.

Could you please suggest why application freezes when setting the RowHeight as 17?


 <telerik:RadGridView Name="GridViewMain" Grid.Row="2" AutoGenerateColumns="False" ShowColumnHeaders="False" SelectionUnit="FullRow" SelectionMode="Extended" 
                                 CanUserDeleteRows="False" CanUserInsertRows="False" CanUserFreezeColumns="False" GridLinesVisibility="None"                                 
                                 ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"  IsFilteringAllowed="False"
                                    AlternationCount="2" ValidatesOnDataErrors="InEditMode" EditTriggers="None" >

                <telerik:RadGridView.Style>
                    <Style TargetType="{x:Type telerik:RadGridView}">
                        <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource TelerikWin7Theme}"/>
                        <Setter Property="GridLinesVisibility" Value="None"/>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value=".5">
                                <Setter Property="RowHeight" Value="17" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value=".75">
                                <Setter Property="RowHeight" Value="17" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value="1">
                                <Setter Property="RowHeight" Value="17" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value="1.25">
                                <Setter Property="RowHeight" Value="22" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </telerik:RadGridView.Style>

 

Thanks in advance,

Manohar

Dilyan Traykov
Telerik team
commented on 19 Jul 2021, 11:15 AM

Hello Manohar,
Thank you for the provided code snippet.
Using it, I tried replicating the issue you described in a small sample project, however, I was not able to observe the crash you're referring to with neither the 2016.1.217.45, nor the latest version of the Telerik UI for WPF controls.
Can you please have a look at the attached project and let me know if I'm missing something of importance?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Manohar
Top achievements
Rank 1
Share this question
or