Completed
Last Updated: 25 Jun 2018 10:13 by ADMIN
ADMIN
Hristo
Created on: 09 Apr 2018 08:19
Category: GridView
Type: Bug Report
2
FIX. RadGridView - the text in the textbox editor is cut off in the Fluent theme in HDPI - 125% scaling
A similar issue can be also observed in RadTreeView:

Workaround RadGridView: 
private void RadGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadTextBoxEditor editor = e.ActiveEditor as RadTextBoxEditor;
    if (editor != null)
    {
        editor.EditorElement.MinSize = new Size(0, 30);
    }
}

Workaround RadTreeView:
 
private void RadTreeView1_EditorInitialized(object sender, TreeNodeEditorInitializedEventArgs e)
{
    TreeViewTextBoxEditor editor = e.Editor as TreeViewTextBoxEditor;
    if (editor != null)
    {
        ((BaseTextBoxEditorElement)editor.EditorElement).TextBoxItem.TextBoxControl.MinimumSize = new Size(0, 24);
    }
}

In 125% the RadTextBox in the Fluent theme keeps shrinking:

Workaround
public RadForm1()
{
    InitializeComponent();

    SizeF dpi = NativeMethods.GetMonitorDpi(Screen.PrimaryScreen, NativeMethods.DpiType.Effective);
    this.radTextBox1.MinimumSize = new Size(0, (int)(24 * dpi.Height));
}


(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
ADMIN
Hristo
Posted on: 25 Jun 2018 10:13
Hi Bruce,

The issue was caused by some incorrect scaling which manifested through the Fluent themes. It was fixed in the R2 2018 release.

Regards,
Hristo
Bruce
Posted on: 20 Apr 2018 16:00
This also effects textboxes in layout controls.