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

Master-Detail reports with Entity Datasource

2 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ibrahim Imam
Top achievements
Rank 1
Ibrahim Imam asked on 21 Dec 2008, 06:31 PM
i want to create a report that shows a hierachy of several entities.
i read in the manuals and samples about master and detail reports using sql as datasource and parameters in the subreports for filtering the correct rows but i want to create the report with the data from already existing entities.

Example of Data Structure:

CompanyData:
string companyName;
string companyAddress;
List<DepartementData> departements;

DepartementData:
string departementName;
List<PersonData> persons;

PersonData:
string Name;
string Birthday;

so this would be a structure with one master report and a subreport that has a supreport itself.
i plan to pass the companyData as datasource to the master report but how can i pass the data on to the subreports?

Thanks for Help


2 Answers, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 23 Dec 2008, 08:06 AM
Hi Ibrahim,

We have attached a simple project that demonstrates how to nest the report and provide data to it.
The main report is bound to the Departments business object. For every subreport we use the NeedDataSource event of the SubReport to set the DataSource of the subreport.

We hope this will help, but do not hesitate to contact us again if you have any other questions.

Greetings,
Hrisi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ibrahim Imam
Top achievements
Rank 1
answered on 05 Jan 2009, 10:37 AM
thanks for your reply and the example - that really helped me and i got it running now
Tags
General Discussions
Asked by
Ibrahim Imam
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Ibrahim Imam
Top achievements
Rank 1
Share this question
or