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

multiple controls in the report

3 Answers 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ott
Top achievements
Rank 1
ott asked on 01 Sep 2010, 01:27 PM
Hello,

I need to place multiple Crosstab controls (dynamically) into my Telerik Report.
Should I create new Report for each Crosstab, and then add it as subreport into my "main" report?
or should I just add the Crosstab controls to DetailSection.Items collection?
which way is the best?

thank you.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 02 Sep 2010, 05:06 PM
Hi ott,

The Crosstab item is a separate data region that we call Data Item. The data items display and manipulate data in Telerik Reports. With a data item, you can group, sort, filter, and aggregate data from a single data source, thus each Crosstab is bound to a separate data source and you can safely place them directly in a single report section without the need to create new reports.

Kind regards,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
ott
Top achievements
Rank 1
answered on 03 Sep 2010, 09:34 AM
Hi Steve.

Thank you for your answer.
Yes, I understand.
I need to create multiple Crosstabs in the runtime.
These Crosstabs have different columns and data sources, and I need to place each Crosstab on the new page of the report.
Should I calculate the location for each Crosstab?
I didn't find any methods to place a control on new page of the report.

Thank you.
0
Steve
Telerik team
answered on 03 Sep 2010, 05:16 PM
Hi ott,

You can place them in the detail section as long as you do not bind the report itself, otherwise the Crosstabs would be repeated for each record in the report. Page break mechanism in Telerik Reporting works per section only, so if you have two or more Crosstabs that fit in a single page, they would be rendered in it. Subreport items do not guarantee that either when they are placed in a single section. The available options are:
  • place the Crosstabs in different report section of an unbound report. Each section should have PageBreak=After.
  • Create separate report for each and use the Report Book functionality which guarantees that each report would start on new page.

Sincerely yours,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
ott
Top achievements
Rank 1
Answers by
Steve
Telerik team
ott
Top achievements
Rank 1
Share this question
or