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

Page Break Before List

1 Answer 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 10 Apr 2014, 03:07 PM
I have an object data source that looks a bit like

ThingData
    Location
    ThingName
    ThingId
    SummaryData (List)
           SummaryA
                Field
                Field
           SummaryB
                Field
etc.

I have grouped by 'ThingId' and I have added List to the detail section of the of the Report. The List DataSource is set to SummaryData.

In the List I can use SummaryA and SummaryB fields, everything is fine.

In Print Preview (and Export) however, there is always a page break before each List, even though it could fit on the preceding page. It works fine in the standard view.

I searched this forum and found references to this being a bug due to be fixed, that post was in 2013. Looking at other options:

- Grouping: I don't think I can group unless I flatten my data

- SubReport: This would mean a SQL call for each SummaryData row, which I want to avoid

Anyone have any suggestions? Thanks.



1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 15 Apr 2014, 12:10 PM
Hello Nick,

Please provide a link to the mentioned post, as we want to check if it applies to this scenario.
Note that the described scenario seems to be caused by an expected difference in the behavior of the Interactive vs. Print Layout rather than a bug. For more information, please check the Interactive vs. Print Layout  help article.
It seems something is making the list to move on the next page. It may be due to a List.KeepTogether property set to True​ or due to other report items taking more space than it meets the eye. To see if other report items are causing the problem, simply change their background to a different, more contrasting color and run the report in the Print Preview or export it to PDF. The rendered report might give you a clue about the items which are at fault.
We can't be sure what is the exact report item or setting at fault until we see the actual report definition. Thus, it will be greatly appreciated if you can provide us with a runnable sample project with test data, so we can review it locally and advise accordingly.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

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