| title | How to Change a Report's Background Image through Binding |
|---|---|
| description | Set the BackgroundImage property through Binding |
| type | how-to |
| page_title | Change the Background Image of a Report through Binding |
| slug | change-background-image-through-binding |
| position | |
| tags | |
| ticketid | 1479467 |
| res_type | kb |
| Product Version | 14.1.20.618 |
| Product | Progress® Telerik® Reporting |
How can I change a report's background image based on a specific value? Can I bind the image to a property?
To set the background image through a Binding, use the Style.BackgroundImage.ImageData property path.
The following steps describe the recommended approach:
-
Reset the
BackgroundImageproperty and remove any configured images. -
Select Bindings in the Properties menu of the report.
-
Create a new binding with the following parameters:
-
Property path:
Style.BackgroundImage.ImageData -
Expression:
=IIf(Condition, imageWhenConditionIsTrue, imageWhenConditionIsFalse)
-