Hi, we are having 2 issues after upgrading from Telerik Reporting Q3 2012 to Q2 2013 SP1.
1) We are programmatically changing the grouping in the NeedDataSource event for a report. In the event, the Telerik.Reporting.Group now returns null when the report is run and throws a NullReferenceException when accessed. Here is the code that works ok in Q3 2012 but fails in Q2 2013 SP1. The code compiles ok but fails on the first line with a NullReferenceException. Should we still be able to access the Group in this way?
2) We also need to access the values of ReportParameters in the NeedDataSource event. Accessing the ReportParameterCollection directly using the following syntax returns null for the parameter value after the upgrade to Q2 2013 SP1 but worked fine in Q3 2012:
We do have success accessing the parameter values by using the processing instance and then the Parameters property of that object:
I just wanted to make sure that accessing the values of parameters through ReportParameters directly has been deprecated or made obsolete. Can you provide any info on this?
Thanks!
1) We are programmatically changing the grouping in the NeedDataSource event for a report. In the event, the Telerik.Reporting.Group now returns null when the report is run and throws a NullReferenceException when accessed. Here is the code that works ok in Q3 2012 but fails in Q2 2013 SP1. The code compiles ok but fails on the first line with a NullReferenceException. Should we still be able to access the Group in this way?
group1.Groupings.Clear();
if
(intervalGroup ==
"HalfHour"
)
{
group1.Groupings.AddRange(
new
Telerik.Reporting.Grouping[] {
new
Telerik.Reporting.Grouping(
"=dIntervalStart"
)
});
txtIntervalGroupLabel.Value =
"=dIntervalStart"
;
txtIntervalGroupLabel.Format =
"{0:g}"
;
}
else
{
group1.Groupings.AddRange(
new
Telerik.Reporting.Grouping[] {
new
Telerik.Reporting.Grouping(
"=dIntervalStart.Date"
)
});
txtIntervalGroupLabel.Value =
"=dIntervalStart.Date"
;
txtIntervalGroupLabel.Format =
"{0:d}"
;
}
2) We also need to access the values of ReportParameters in the NeedDataSource event. Accessing the ReportParameterCollection directly using the following syntax returns null for the parameter value after the upgrade to Q2 2013 SP1 but worked fine in Q3 2012:
string
intervalGroup =
ReportParameters[
"IntervalGroup"
].Value.ToString();
We do have success accessing the parameter values by using the processing instance and then the Parameters property of that object:
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
string
intervalGroup = report.Parameters[
"IntervalGroup"
].Value.ToString();
I just wanted to make sure that accessing the values of parameters through ReportParameters directly has been deprecated or made obsolete. Can you provide any info on this?
Thanks!