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

Detail report POCO

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 17 Mar 2013, 10:39 AM
I have created 2 simple classes to represent an order and orderlines. I am now trying to create a report to display this data.

The data is presented via a viewmodel method
[DataObjectMethod(DataObjectMethodType.Select)]
        public ReportOrderDetail GetReportOrderDetail()
{.....

This returns the Order POCO with a property OrderLines.

In order to display this data, do I need to create a subreport against the orderlines?

If so, how do I connect this subreport to the OrderLines of the parent report?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 Mar 2013, 11:59 AM
Hello Michael,

Check the attached sample illustrating the usage of nested collections via the ObjectDataSource component. The report data source is set to a list of objects (Cars) where each object has its own nested collection of items (CarAvailableColors). In the detail section there is a List/Table item bound to that nested collection with a binding expression to the field providing the collection (Fields.CarAvailableColors). 

Greetings,
Peter
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or