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.

Prefer Conditional Formatting over Bindings for Presentational Style Logic When a runtime value only affects how a report item looks, for example, the background color, font color, font weight, or border width, prefer a Conditional Formatting rule over a Binding. Bindings rely on reflection at runtime to resolve and assign the target property, which adds processing overhead. Conditional Formatting rules are evaluated through a more efficient code path and typically perform noticeably better in dense, data-bound sections that re-evaluate styling on every rendered row.

Reserve Bindings for properties that do not accept Expressions directly. Properties that already support Expressions—such as the TextBox.Value—should be set with an Expression, because wiring a Binding to them adds the reflection overhead without providing any additional capability.

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