Completed
Last Updated: 20 Oct 2015 14:50 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 03 Sep 2015 10:49
Category: GridView
Type: Bug Report
1
FIX. RadGridView - editor's text is cut off in VisualStudio2012Dark, VisualStudio2012Light and Breeze themes
Workaround: check for the theme and set a minimum size to the text box item

private void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    BaseGridEditor gridEditor = e.ActiveEditor as BaseGridEditor;
    if (gridEditor != null)
    {
        RadTextBoxElement el = gridEditor.OwnerElement.FindDescendant<RadTextBoxElement>();
        if (el != null)
        {
            if (ThemeResolutionService.ApplicationThemeName == "VisualStudio2012Dark")
            { 
                el.TextBoxItem.MinSize = new Size(0, 20);
                el.TextBoxItem.TextBoxControl.MinimumSize = new Size(0, 20);
            }
        }
    }
}
Attached Files:
0 comments