Unplanned
Last Updated: 11 Jan 2023 08:25 by ADMIN
david
Created on: 11 Jan 2023 08:19
Category: GridView
Type: Bug Report
1
RadVirtualGrid: Columns' width settings are reset when the DPI scale factor is changed

To reproduce:

1.Open the Demo application >> VirtualGrid >> First Look example and resize a column.

2.Then, move the form to a monitor with higher than 100% DPI scale factor.

Expected: the columns' width settings should be preserved.

Actual: the columns' width settings got reset.

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 11 Jan 2023 08:25

Hi, David,

Thank you for bringing this behavior to our attention.

Currently, the possible solution that I can suggest is to set again the desired column's width when the DPI scale factor is changed: 

 this.radVirtualGrid1.RootElement.DpiScaleFactorChanged += RootElement_DpiScaleFactorChanged;
        private void RootElement_DpiScaleFactorChanged(object sender, EventArgs e)
        {
            this.radVirtualGrid1.TableElement.ColumnsViewState.SetItemSize(0, 50);
        }

I believe that it would fit your scenario.

Regards,
Dess | Tech Support Engineer, Principal
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/.