Unplanned
Last Updated: 08 Nov 2016 14:34 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 01 Nov 2016 10:08
Category: GridView
Type: Bug Report
0
FIX. RadGridView - partially visible text in the GridViewDateTimeColumn's editor when using GridViewDateTimeEditorType.DateTimePickerSpinMode
To reproduce: please refer to the attached sample project and gif file. 

Workaround:

private void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            RadDateTimeEditor editor = e.ActiveEditor as RadDateTimeEditor;
            if (editor != null)
            {
                RadDateTimeEditorElement el = editor.EditorElement as RadDateTimeEditorElement;
                if (el != null)
                {
                    el.TextBoxElement.TextBoxItem.GotFocus -= TextBoxItem_GotFocus; 
                    el.TextBoxElement.TextBoxItem.GotFocus += TextBoxItem_GotFocus; 
                }
            }
        }

        private void TextBoxItem_GotFocus(object sender, EventArgs e)
        {
            RadTextBoxItem tb = sender as RadTextBoxItem;
            if (tb != null)
            {
                tb.SelectionLength = 0;
            }
        }
0 comments