New to Telerik ReportingStart a free 30-day trial

Bindings Overview

Bindings allow you to dynamically set report item properties using expressions. While only certain properties support expressions natively (like the TextBox Value property), bindings extend this capability to any write-enabled property.

When the report renders, the expression is evaluated and assigned to the bound property. For example, you can bind Style.BackgroundColor to =Fields.CarColor to set colors dynamically from your data.

Bindings vs. Other Approaches

ScenarioUse ThisReason
Displaying field values in text boxesValue expressions (e.g., =Fields.Total)The Value property supports expressions natively.
Styling multiple properties based on conditionsConditional FormattingUser-friendly interface, one rule can set multiple style properties.
Complex expressions for stylingBindingsFull expression flexibility, cleaner for complex logic like IIF(Fields.Amount > 1000, 'Red', 'Green').
Setting DataSource, Visible, or other properties without native expression supportBindingsOnly bindings can dynamically set these properties.

Common Binding Scenarios

PropertyExpression ExamplePurpose
Style.BackgroundColor=IIF(Fields.Amount > 1000, 'Red', 'Green')Change background color based on value
Visible=Fields.ShowDetailsShow/hide items based on data
DataSource=Fields.NestedDataDynamically assign nested data from a JSON field
Style.Font.Bold=Fields.IsHighlightConditionally format text
DocumentMapText=Fields.CategoryNameSet document map entries

How to Create a Binding

  1. Select the report item and locate the Bindings property in the Properties window.
  2. Click the ellipsis button [...] to open the Edit Bindings dialog.
  3. Click New to add a new binding.
  4. From the Property path dropdown, select the property to bind (for example, DataSource). Only write-enabled properties can be bound.
  5. Enter the expression in the Expression field. The expression must return a value compatible with the property type.
  6. Click OK to apply the bindings.

Not all item properties support expression bindings. Refer to the Reporting API Reference to verify if a specific property supports binding.

Edit Bindings Wizard

See Also