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

Keep header with first part of Detail

3 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pedro
Top achievements
Rank 1
Pedro asked on 14 Feb 2013, 10:41 AM
Hello,

I'm struggling with a report group header that keeps showing alone in one page and the detail section in the other.
This is the report structure:
GroupHeader
     Header Info
Detail
    Text box
    SubReport

Footer is empty

The groupheader PrintOnEveryPage property is (must be) set to True.
The subreport doesn't always fit in one page and the text box may or may not be visible. What I would like is to have a way to keep the header together with at least some part of the detail section. (Keep together for the detail section is set to false as well as for the sub report.)

Is there any way to achieve this behaviour?

Thank you for your help!

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Feb 2013, 10:40 AM
Hi Pedro,

Use the GroupKeepTogether Property for this purpose.

Greetings,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Pedro
Top achievements
Rank 1
answered on 15 Feb 2013, 10:45 AM
Hello Steve,

I tried that but the GroupKeepTogether is not working. If I set it to "All" it will change page leaving a big space on the previous page. If I set it to "FirstDetail" it is not working.

What I would like to do is, for example, to keep the header and the first text box of the detail in one page and the rest breaks to the other. Or, if the text box is empty (not visible), keep the header with the detail.

I don't know if I made myself clear but the GroupKeepTogether is not working for this case...
0
Steve
Telerik team
answered on 18 Feb 2013, 04:07 PM
Hi Pedro,

There are several things to consider:
  • is your report viewer in Interactive or Print Preview? Please note that the KeepTogether functionality as well as Page Breaks, make sense for page oriented formats. Switch to PrintPreview and the GroupKeepTogether should work as expected.
  • Make sure KeepTogether is set to false for the detail section of the report set as SubReport item as well, including other report sections as well.

If you're still having problems, it would be best to open a support ticket and attach a sample project that exhibits the problem, so we can advise you accordingly.

Kind regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

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