Declined
Last Updated: 03 Apr 2020 05:56 by ADMIN
MIN
Created on: 28 Feb 2020 14:46
Type: Bug Report
1
Setting a DataSource to the report on NeedDataSource doesn't work
There is a regression in this event. 
1 comment
ADMIN
Katia
Posted on: 03 Apr 2020 05:54

Hello everybody,

After investigating the problematic project, it appears this was not a bug. The behavior was affected by the optimization change in the report rendering algorithm introduced in R3 2016. Due to the caching of items definitions, you can only apply changes to the processing instance of an item inside events, for example:

void report_NeedDataSource(object sender, EventArgs e)
{
    Telerik.Reporting.Processing.Report processingReport = (Telerik.Reporting.Processing.Report)sender;
    processingReport.DataSource = GetReportData();
}

For additional reference, check Changes on items in report events are not applied kb article.

 

Regards,
Katia
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.