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

Multiple ConditionalFormattingObjects problem

1 Answer 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cristian Apavaloaiei
Top achievements
Rank 2
Cristian Apavaloaiei asked on 28 Jun 2010, 12:48 PM
Hello,
I'm trying to use conditional formatting based on two different columns in a grid.
One is a bool column, based on it i change the row forecolor, the other one is an int and based on it i change the row backcolor. Both are applied to the full row. If i only create the first formatting, it works fine. If i add the second formatting object, the first one does not work anymore. I am only setting RowForeColor on the first formatting object and RowBackColor on the second one. What am i doing wrong? Or are the conditionalFormattingObjects built such that you can only use them on one column at a time on a grid if you apply them to the full row.

Waiting for your response

1 Answer, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 30 Jun 2010, 01:15 PM
Hi Cristian Apavaloaiei,

Our conditional formatting feature is designed to handle simpler scenarios and it can't handle this case out of the box.

You have to use code and handle the CellFormatting event. Please consider the following KB article. Check also our online help for more details. Nevertheless, we plan to extend the conditional formatting feature in future and will include this scenario.

If you need further assistance with this, don't hesitate to write back.
 
All the best,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Cristian Apavaloaiei
Top achievements
Rank 2
Answers by
Jack
Telerik team
Share this question
or