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

Question about conditional formatting rules

1 Answer 133 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert Strazzarino
Top achievements
Rank 1
Robert Strazzarino asked on 23 Jun 2010, 09:14 PM
I have a table in a report that I want to alternate the colors.  I tried adding the condtional formatting to the detail but all of the data in the report was one color.   If I add the conditional formatting to each cell in the data row of the table then I get what I want.  I tried selecting all of the cells and then doing the conditional formatting once but that doesn't work.  
  Is there a way to copy the conditional formatting rule so I don't have to manually add it to each table data cell? 
Thanks,
Robert

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Jun 2010, 08:42 AM
Hello Robert Strazzarino,

Indeed setting Conditional Formatting to multiple items is not supported at this time, so you would have to apply it for each item separately.

As a workaround, once the Formatting Rule is created you can add it to other items in the reports.Designer.cs as shown in the following snippet:

this.textBox30.ConditionalFormatting.AddRange(new Telerik.Reporting.Drawing.FormattingRule[] {formattingRule1});

Regards,
Peter
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
General Discussions
Asked by
Robert Strazzarino
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or