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

Problem of ConditionalFormatting

3 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fabien
Top achievements
Rank 2
Fabien asked on 24 Apr 2009, 10:02 AM
Hi,

I use the Q1 2009 SP1.

If I set a ConditionalFormattingObjectList for a column, the header row cell is colorised, sounds wrong for me.

Perhaps a mistake about GridTableHeaderRowElement, a control is missing?!?

How can I patch this?

Best regards,

Fabien

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 24 Apr 2009, 03:15 PM
Hi Fabien,

Thank you for reporting this issue.

I confirm that this is an issue and it exists in our latest release. We will address it asap. I have updated your Telerik points for this bug report.

You can work around the issue by using custom header cells. You should trap the NotifyFormatChanged method. Here is a sample:

void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e) 
    if (e.CellType == typeof(GridHeaderCellElement)) 
    { 
        e.CellElement = new MyHeaderCell(e.Column, e.Row); 
    } 
 
public class MyHeaderCell : GridHeaderCellElement 
    public MyHeaderCell(GridViewColumn column, GridRowElement row) : 
        base(column, row) 
    { 
    } 
 
    protected override Type ThemeEffectiveType 
    { 
        get { return typeof(GridHeaderCellElement); } 
    } 
 
    protected override void NotifyFormatChanged() 
    {           
    } 

Should you have any further questions, don't hesitate to write us.

All the best,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Fabien
Top achievements
Rank 2
answered on 28 Apr 2009, 08:52 AM
Hi,

i'm sorry but this patch don't work for me. I'll wait for next release.

Best regards,

Fabien
0
Georgi
Telerik team
answered on 28 Apr 2009, 02:11 PM
Hi Fabien,

Unfortunately there is no other way to workaround this problem. We will fix it for Q2 2009. I would like to apologize for the caused inconvenience and to thank you for pointing this issue out.

Kind regards,
Georgi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Fabien
Top achievements
Rank 2
Answers by
Jack
Telerik team
Fabien
Top achievements
Rank 2
Georgi
Telerik team
Share this question
or