Question about conditional formatting rules

2 posts, 0 answers
  1. Robert Strazzarino
    Robert Strazzarino avatar
    41 posts
    Member since:
    Jan 2006

    Posted 23 Jun 2010 Link to this post

    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? 
  2. Peter
    Peter avatar
    1631 posts

    Posted 25 Jun 2010 Link to this post

    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});

    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
Back to Top