Unplanned
Last Updated: 02 Oct 2023 08:42 by ADMIN
Juan
Created on: 02 Oct 2023 08:22
Category: GridView
Type: Bug Report
0
RadGridView: Clipping text when the cell is in edit mode and AutoSizeRows = true with Windows 11 Theme

When typing text in a new row in the RadGridView control with Windows 11 theme, the text appears to be moved down from the top of the row and makes it look like it is hidden, thus making it hard to see. 

I am using all the defaults of the RadGridView control with AutoSizeRows = true.

1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 02 Oct 2023 08:42

Hi, Juan,

Currently, to workaround this issue you can use the following code snippet:

private void RadGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadTextBoxEditor tbEditor = this.radGridView1.ActiveEditor as RadTextBoxEditor;
    if (tbEditor != null)
    {

        RadTextBoxEditorElement tbElement = (RadTextBoxEditorElement)tbEditor.EditorElement;
        tbElement.Padding = new Padding(0);
    }
}

 

Regards,
Nadya
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.