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:
- When RadGridView row height is set to 17 application freezes.
- When I removed the RowHeight change completed no freeze is observed.
- When I change the RowHeight to 18 no freeze is observed.
- 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
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?