´╗┐ Using Report Events
Progress® Telerik® Reporting R2 2018

Using Report Events

The Report object exposes these events:

ItemDataBindingFires just before the report is bound to data.
NeedDataSourceFires when the report does not have data source set.
ItemDataBoundFires just after the report is bound to data.

The example below shows the NeedDataSource event assigning the report DataSource at runtime. This event only fires when the DataSource is null.


void report_NeedDataSource(object sender, EventArgs e)
    Telerik.Reporting.Processing.Report processingReport = (Telerik.Reporting.Processing.Report)sender;
    object processingParameterValue = processingReport.Parameters["parameter1"].Value;
    processingReport.DataSource = GetData(processingParameterValue);

static object GetData(object value)
    // Implement your custom data retrieval logic instead
    return new string[] { "Sofia", "London", "Tokyo" };
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article