Completed
Last Updated: 25 Sep 2024 10:22 by ADMIN
Release 2024.3.924
ADMIN
Hristo
Created on: 06 Apr 2018 08:13
Category: GridView
Type: Bug Report
4
FIX. RadGridView - in a HDPI application with 125% scaling text inside the editor has smaller font
How to reproduce: Create a DPI-aware application and run it on a Windows 10 machine on 125%, the text inside the editors is smaller compared to the text in cells which are not in edit mode.

Workaround: 
private void RadGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    BaseInputEditor editor = e.ActiveEditor as BaseInputEditor;

    if (editor != null)
    {
        RadTextBoxItem item = editor.EditorElement.FindDescendant<RadTextBoxItem>();

        if (item != null)
        {
            item.HostedControl.Font = this.radGridView1.GridViewElement.GetScaledFont(this.radGridView1.GridViewElement.DpiScaleFactor.Height);
        }
    }
} 
Attached Files:
0 comments