Completed
Last Updated: 27 Jan 2015 13:20 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 06 Jan 2015 13:51
Category: GridView
Type: Bug Report
1
FIX. RadGridView - When the GridColorPickerElement.ReadOnly property is set to true, the editor is initialized with the last select color no matter the cell value
private void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    GridColorPickerEditor colorEditor = e.ActiveEditor as GridColorPickerEditor;
    if (colorEditor!=null)
    {
        GridColorPickerElement colorPicker = colorEditor.EditorElement  as GridColorPickerElement;
        colorPicker.ReadOnly = true;
    }
}

Please refer to the attached gif file.

Workaround:
private void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
{
    if (e.EditorType == typeof(GridColorPickerEditor))
    {
        e.Editor = new GridColorPickerEditor();
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments