Completed
Last Updated: 20 Jan 2015 12:29 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 24 Mar 2014 11:58
Category: UI Framework
Type: Bug Report
0
FIX. RadGridView does not display correct BackColor initially for the GridIndentCellElement when apply Office2007Silver theme
To reproduce: 
1.Add a RadGridView with several levels of hierarchy. 
2.Apply Office2007Silver theme.

When clicking over the "+" sign, it seems to be a refresh problem for the GridIndentCellElement. Please, refer to the attached picture.

Workaround:
private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
    if (e.CellElement is GridIndentCellElement)
    {
        e.CellElement.BackColor = Color.FromArgb(231, 231, 231);
        e.CellElement.DrawFill = true;
        e.CellElement.GradientStyle = GradientStyles.Solid;
    }
    else
    {
        e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
        e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
        e.CellElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
    }
}
1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 24 Mar 2014 12:00
Please refer to the attached picture.
Attached Files: