This is a migrated thread and some comments may be shown as answers.

Formatting problem with Grouping on Q3 2007 SP1

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sean McConnell
Top achievements
Rank 1
Sean McConnell asked on 11 Jun 2008, 08:54 PM
First of all, yes we are using Q3 2007 SP1 because we don't dare upgrade at this late point in our development.

Secondly, I have no posted screenshots yet because I am hoping this is a known issue.

Basically, we have a grid with one level of grouping and a theme applied.. everything works pefectly.. except if we scroll up and down on the grid really fast using the mouse wheel, suddenly cells start to lose their style, reverting back to the default font and color.

Using RadControlSpy confirms the cells are losing all custom styling.

Is this a known issue? If not I can create an example to upload.

Thanks,

Capstone

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 12 Jun 2008, 01:15 PM
Hi Randall,

Thank you for contacting us.

In our latest release - Q1 2008 Service Pack 1, we have reingeneered and improved the RafGridView. I can assure you that this is the fastest and the most stable version of RadGridView. There are many new features and completely new controls, such as the RadForm and the RadCarousel controls. I strongly encourage updating to the latest version of RadControls.

If you decide to use the old Q3 2007 release, you can work around the issue by processing the CellFormatting event instead of using conditional formatting. Consider the following workaround:

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)  
{  
    if (e.CellElement.ColumnInfo is GridViewDataColumn &&  
        ((GridViewDataColumn)e.CellElement.ColumnInfo).DataField == "Value")  
    {  
        if ((int)e.CellElement.Value > 5)  
        {  
            e.CellElement.ForeColor = Color.Red;  
        }  
        else 
        {  
            e.CellElement.ForeColor = Color.Blue;  
        }  
    }  

I hope this helps. Please let me know if I can help you further.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Sean McConnell
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or