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

Is it possible to enter page break in the report List?

22 Answers 902 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mindaugas
Top achievements
Rank 1
Mindaugas asked on 15 Jun 2012, 09:11 AM
Hello, i would like to enter a page break when list RowCount() = 4. Is it posible to do somehow using designer or code ? Thanks indeed for any help. I know i can add custom formatting rules but there is no page break option to select. Basically i need to put a page break in a list after a certain number of list rows.

22 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Jun 2012, 09:54 AM
Hi Mindaugas,

PageBreaks are only available per report sections and you cannot force a pagebreak on a list. Since you're using List item which works pretty much like a repeater, we suggest you recreate your layout with report sections/groups instead.

Regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Mindaugas
Top achievements
Rank 1
answered on 15 Jun 2012, 11:08 AM
Thank you for your message. Really appreciate your help. Whats the point to use a section group? if i put a list in section group so how i would be able to insert a page break depending on list item count in that group? how to insert a section group in report by the way? I cant find any specific item in toolbox at the moment. :(
0
Elian
Telerik team
answered on 18 Jun 2012, 12:58 PM
Hi Mindaugas,

Just as the List item, the report can show items from different data-sources. If you assign the DataSource property of the report and put textboxes in the Detail section, the Detail section will repeat once for each item in the DataSource (just like the List). So the Detail section can generally be treated like a list. If you recreate your layout with the usage of report section (and not the list), you will be able to set a page break on every 4th item. 

Greetings,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Wadigzon
Top achievements
Rank 1
answered on 14 May 2013, 01:55 PM
I have two lists in my report, they are horizontally laid out one after the other, the end of the 1st list and the beginning of the 2nd list sometimes appear at the middle of the page, how do I make the beginning of the 2nd list start on a new page? (force a break point before a new list (the 2nd) begins)

regards
0
IvanY
Telerik team
answered on 17 May 2013, 12:26 PM
Hello Wadigzon,

You can add the lists to a group so that the two lists are in different groups. Then set the group header and footer to visible=false. Finally set the PageBreak property of the group to be different from None (according to your needs).

For more about grouping please check this Grouping Data help article.

Regards,
IvanY
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Wadigzon
Top achievements
Rank 1
answered on 17 May 2013, 03:52 PM
IvanY wrote: 
"You can add the lists to a group so that the two lists are in different groups.
you are confusing me, I thought you add groupings to a list in group explorer, where do I add the entire list to a group? 

"Then set the group header and footer to visible=false."
didn't know groups have header and footer are you sure you're talking about groups?

"Finally set the PageBreak property of the group to be different from None"
didn't know groups have PageBreak either ...... please clarify this for me ... 

0
IvanY
Telerik team
answered on 23 May 2013, 01:26 PM
Hello Wadigzon,

Up to your questions:
  1. You can add groupings to the report itself. For example if you use the report wizard for creating a report you will see that besides the report and page header/footer sections also group sections will be added. Additionally you will be able to see the group in the Group Explorer upon clicking on the detail section for example.
  2. See 1. Each report group has a respective group header and footer.
  3. To be more specific PageBreak property has the detail section - it will give you the option to start each record on a new page.

Basically in your case the data has to be organized in a way that it can support your scenario. You will have to create a data source in a way that the two lists are in two separate groups. Then set the data source of the report to this data source and finally set the data source of the list (it has to be a single list and in runtime you will have two lists, one for each group). Then set the PageBreak property of the detail section to be different from none and finally hide the group header and footer (since you are going to use the groups only for the PageBreak).

If your data is not or cannot be organized in such way you will not be able to always start the list on a new page.

For more information about report grouping please have a look at this help article: How to: Add groups to Report.

All the best,
IvanY
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Wadigzon
Top achievements
Rank 1
answered on 06 Jun 2013, 10:59 PM
When I create two groups inside the report, they both have a header and a footer and they are nested (one inside the other), I don't understand this: My report is in the detail section, how do I move a report to the group? should I put it in the header/footer of the group as I don't see the group itself in the design layout. and if I hide the group header and footer, what sense does it make to put it there as I have to hide them.
0
Wadigzon
Top achievements
Rank 1
answered on 06 Jun 2013, 11:00 PM
could you post some sample code where you've done this ? two lists always separated by a page break.

regards.
0
IvanY
Telerik team
answered on 11 Jun 2013, 01:36 PM
Hi Wadigzon,

I have attached a sample report demonstrating how to complete your goals. Please note that as stated in the previous posts you will need to group your data on something in order to be able to insert the desired page break.

Regards,
IvanY
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Wadigzon
Top achievements
Rank 1
answered on 13 Jun 2013, 05:33 PM
I added these files to my project without much success (clicking the project file doesn't show me anything on design mode neither does clicking on preview).... do you have a project file around these files that I can just run?

regards.
0
IvanY
Telerik team
answered on 18 Jun 2013, 12:32 PM
Hi Wadigzon,

Sorry for the inconvenience. Most probably you are not able to open the report since I used the latest version when I was creating it. Please check this one. Additionally please note that if you are not able to open this one it will be best to write a support ticket and specify the version you are using (the support ticket will be handled faster than a forum post).

Regards,
IvanY
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Wadigzon
Top achievements
Rank 1
answered on 18 Jun 2013, 03:15 PM
got it now thanks ... 
0
Wadigzon
Top achievements
Rank 1
answered on 18 Jun 2013, 05:39 PM
The question was about two lists laid out vertically, one after the other: How do I insert a page break before the beginning of the second list? this response doesn't seem to address that question. Should I create a new thread for this? 
0
IvanY
Telerik team
answered on 21 Jun 2013, 11:12 AM
Hi Wadigzon,

The report we have sent you has exactly two lists which are on separate pages. If a list is longer than a single page it will continue on a new page. However when the new lists starts (the second one) it will always start on a new page, i.e. you will have a page break.

Please have in mind that inserting page breaks randomly in the report is not possible (as stated in the previous posts). Inserting page breaks can be done if you have properly grouped your data. Then you will be able to set a page break before, after or before and after a new group. The example sent to you does just that - it wraps the two lists in a group so that they can take advantage from the group paging.

If your lists contain completely different data you may need to use a user function that returns your data source based on the group in which your list is.

Regards,
IvanY
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Wadigzon
Top achievements
Rank 1
answered on 21 Jun 2013, 02:58 PM
Clearly, there's only one List (Table) object as shown in the attached image, the name of the object is table2, 
where is the other List (Table)? My question speaks of two different lists laid out vertically.

regards,
0
Peter
Telerik team
answered on 26 Jun 2013, 02:36 PM
Hello,

Check out the updated sample according to your description. If you still experience any further difficulties in order to avoid further confusion please open a support thread and send us the problematic report definition to review on our end.

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
MV
Top achievements
Rank 1
answered on 23 Feb 2016, 08:03 PM

I have a report with 3 lists

list 1 : First 3 lines

list 2: Left column (owners record)

list 3: Right column (send correspondence)

When I preview my report, it looks perfect; but when I export to pdf, it is performing a page break. It doesn't do it when there are more or less than 5 records.

Any help will be appreciated, thank you!

0
MV
Top achievements
Rank 1
answered on 23 Feb 2016, 08:13 PM

Here's what I did in case someone has the same issue.

Set List Properties Behavior: KeepTogether to False

0
Stef
Telerik team
answered on 25 Feb 2016, 12:52 PM
Hello MV,

I am glad to hear the issue is resolved.

Just to add some information:
The report is displayed in interactive preview on your screenshots from the report designer. The physical layout of the document can be seen in print preview - Interactive vs. Print Layout.


And for anyone interested:
If there are blanks spaces in print preview, I can suggest you the troubleshooting approaches in the Problem: Telerik Reporting renders blank pages KB article. By coloring items and sections you can determine which causes the blank space and change its KeepTogether property based on the Understanding Pagination help article.

Regards,
Stef
Telerik
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
0
MV
Top achievements
Rank 1
answered on 26 Feb 2016, 06:55 PM

One more question...

List 2 and List 3 have 8 textboxes w/fields and conditional formatting on every textbox. If there is no First Name and Last Name, I hide the textbox so only 7 textboxes will be displayed. Is there a way to shrink the list depending on the textboxes that are actually displayed?

0
Stef
Telerik team
answered on 01 Mar 2016, 05:02 PM
Hello MV,

When a TextBox item is hidden the rest will move in the container based on the Design Considerations for Report Item Layout.

Thus my suggestion is to design the List items to have minimal sizes per Textbox items and rows in the List item's structure. The visualized content will cause items to grow vertically. Please do not use zero values for width and height of items to avoid processing and rendering issues.


I hope this information helps.

Regards,
Stef
Telerik
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
Mindaugas
Top achievements
Rank 1
Answers by
Steve
Telerik team
Mindaugas
Top achievements
Rank 1
Elian
Telerik team
Wadigzon
Top achievements
Rank 1
IvanY
Telerik team
Peter
Telerik team
MV
Top achievements
Rank 1
Stef
Telerik team
Share this question
or