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

cannot remove background image with conditional formatting rules

1 Answer 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark DeMichele
Top achievements
Rank 1
Mark DeMichele asked on 23 Sep 2009, 09:23 PM
Hi there,

I've been trying to remove a background image by setting conditional formatting rules, but I can't seem to do so. I've been able to replicate the behavior in Preview mode with a static report (with no data source) by following these steps:

1. Add a new report to the project. Select No Data Source and leave the defaults for the other options.

2. In the reportHeader section, shrink the Report1 text box.

3. Add an empty TextBox below the Report1 text box.

4. Right-click on the newly created text box and select Style.

5. Under Background, select any small mage for ImageData that would fit in the textbox.

6. Right-click outside the report's boundaries and select Report Parameters.

7. Create a parameter named "test" of type Boolean with value =False.

8. Right-click on the text box again, and select Conditional Formatting.

9. Create a new rule with the following specifications:

  • Expression: = Parameters.test
  • Operator: =
  • Value: =False
  • Style: Text Bold, 14pt; Background Beige, do not select a background image

10. Save and Preview the report. Notice how the textbox has a beige background but the image is still there.
Am I doing something wrong?

I'm using Q1 2009.

Thanks,
Mark

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Sep 2009, 02:27 PM
Hello Mark,

Actually the conditional formatting is meant to be used the other way around i.e. set a value for a property/attribute which does not have a default value. In your case, leave the BackGroundImage empty and make the condition such that a background image would be applied when it is met.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Mark DeMichele
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or