I would like to upgrade my version of Telerik Reporting from version 13 to 16, but the latest version that works well is 14.0.20.115, then I have some problems. I'm using the Designer for Visual Studio 2019 with the .Net Framework 4.
My report uses the NeedDataSource function to dynamically select the correct ObjectDataSource, but as of version 14.0.22.119 the Member function is never called. No error is generated, it's just as if the dataSource was not defined. I also tried several other revisions (15.2 and 16.0) and got the same result. If I force a particular objectDataSource in the report, it works but I don't want to copy the same report 3 times just because I have 3 different objectDatasource.
This is what my NeedDataSource function looks like:
private void MyReport_NeedDataSource(object sender, System.EventArgs e) { CurrentReport = ((Telerik.Reporting.Processing.Report)sender); var paramProviderName = CurrentReport.Parameters.Where((param) => param.Key.ToLower() == "providername").Single().Value; switch (paramProviderName.Value.ToString()) { case "provider1": DataSource = odsProvider1; break; case "provider2": DataSource = odsProvider2; break; case "provider3": DataSource = odsProvider3; break; } }
As a second problem, my user functions no longer appear in the Edit Expression popup.
Is there a solution for these 2 problems?