This is a migrated thread and some comments may be shown as answers.

Processing objects have changed in 2008.3

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 1
Grant asked on 02 Dec 2008, 05:08 PM

This is probably more of a support ticket situation, but until we get our client.net accounts straightened out with the right license info, maybe I can get a hand from the forums...

Having installed version 2008.3 1105 of Telerik Reporting, an existing project built with version Q2 2008 SP2 is now broken.

We were binding subreports to object collections on the parent report’s data item, like so:

 

        private void SubReport1_NeedDataSource(object sender, System.EventArgs e)

        {

            var subReport = ((Telerik.Reporting.Processing.SubReport)sender);

            subReport.InnerReport.DataSource = ((System.Data.DataRowView)subReport.Parent.DataItem).Row["OrderDetails"];

        }

 

The yellow item (parent of a Processing.Subreport) was of type Processing.ReportItemBase in Q2 2008 SP2.  In 2008.3 1105, the type has changed to Processing.ProcessingElement, which does not have a DataItem property.

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Dec 2008, 01:15 PM
Hello Grant,

In the Q3 release we have changed the rendering mechanism and therefore some changes were made to the processing items as well and one of those is the ProcessingElement which is base for the ReportItemBase as can be seen from the inheritance hierarchy: ReportItemBase Class.
Using
subReport.DataItem directly should work properly in your scenario.

Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Grant
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or