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

Using 2 ObjectDataSource

1 Answer 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 05 Jul 2016, 03:07 PM

Hi to all,

I need to create a report that it contains 2 ObjectDataSource:

1st: return a List of objects that I have to show on report

2nd: return an object that contains company information

 

I need show 2nd item into pageheadersection and 1st normally using in detailed

 

how can I do?

1 Answer, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 06 Jul 2016, 08:32 AM
Hello Potito,

A Data Item can have only a single data source. Thus, in order to use multiple data sources in the report, you will need to add multiple data items.
Since data items cannot be added to the Page Header section, the only way to display data there is to assign the Report.DataSource to the 2nd ObjectDataSource component.
The 1st ObjectDataSource can be used together with a separate data item nested in the detail section of the report or in a static group section which won't be repeated for each data row of the report's data source.

Regards,
Nasko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Nasko
Telerik team
Share this question
or