Completed
Last Updated: 13 Dec 2021 07:59 by ADMIN
Release LIB 2021.3.1213 (13 Dec 2021)
John
Created on: 16 Nov 2021 20:43
Category: VirtualGrid
Type: Bug Report
0
Cannot update VirtualGrid font size when used with DockingPane

I have an application that uses docking. Each pane contain a virtual grid.

If the user toggles between panes, any future font size changes are not reflected by the virtual grid

I have attached a demo project that shows the problem.

 

After launching the application:

1) click the Increase/Decrease Font buttons to see the font size change.

2) click tab2 then go back to tab1

3) click the Increase/Decrease Font buttons to see the Virtual Grids font size no longer updates.

 

(I have a third virtual grid outside of the Docking that shows that the font does change if not used inside of a docking control)

Attached Files:
3 comments
ADMIN
Dilyan Traykov
Posted on: 30 Nov 2021 15:50

Hello John,

Thank you very much for the updated project.

Indeed, I can confirm that I was able to replicate the undesired behavior and this indeed seems like a bug caused by the integration between the two controls.

As a thank you for bringing this to our attention, I've awarded you with some Telerik points. Please follow the item to get notified about any changes in its status.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

John
Posted on: 23 Nov 2021 19:01

Thank you for your response. It is MOSTLY working after I added the style changes to App.xaml

            <Style TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}">
                <Setter Property="IsContentPreserved" Value="True"/>
            </Style>

            <Style TargetType="telerik:RadVirtualGrid" BasedOn="{StaticResource RadVirtualGridStyle}">
                <Setter Property="FontSize" Value="{telerik:VisualStudio2019Resource ResourceKey=FontSize }" />
            </Style>

 

However I didn't want to complicate my initial example, but I'm still having the same problem.

I am using PRISM with Docking. When I drag a window and re-dock I once again loose the dynamic Font resizing.

I attached an updated project file combining your PRISM, VirtualGrid, and Docking examples

You can see the problem occur when you drag & dock the window

Thanks for your help

 

 

 

Attached Files:
ADMIN
Dilyan Traykov
Posted on: 19 Nov 2021 12:53

Hello John,

The reason for this behavior is that, by default, each time the selection is changed (by choosing a different tab), the content of the last active pane is unloaded in order to load the content of the newly selected item.

To have the font sizes updated as expected, you can set the IsContentPreserved property of the RadPaneGroup to True.

<telerik:RadPaneGroup x:Name="PaneGroup1" IsContentPreserved="True">

Can you please give this a try and let me know if this provides the desired result?

Regards,
Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.