I have a problem after upgrade my project from Q1 2014 to Lasr version 2017 of telerik components and reporting. I solved the problems at the all components but at Reporting still have problems and i don't know why.
I have few reports which contain 2-3 subreports. After upgrade my parameters on NeedDataSource has value 0. but on sender the value is ok.
I tried few methods to extract the value but only one works.
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;<
string idUser = report.Parameters["idUser"].Value.ToString(); <
this.llDs.DataSource = new Service().GetLLGridModel((int.Parse(idUser)));
If i put: int idUser = report.Parameters["idUser"].Value or int.Parse(this.ReportParameters["idUser"]).Value.ToString()). the value will be 0 I don't understand why?
Any other solutions? because my solution it's a trick but not clean code. i made cast to string to extract a value from object and then cast from string to int to pass to function...