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

How to set pagesize to break page

1 Answer 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sơn
Top achievements
Rank 1
Sơn asked on 09 Jul 2019, 03:49 AM

Hi

As i know telerik reporting support PageBreak for Group. But i want to config set pagesize for each page report.

EX: I have 100 row record. I set pagesize = 20 => i have 5 page.

Regard

Truong Son

1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 11 Jul 2019, 02:38 PM
Hello Truong Son,

The Report Groups are the correct approach for the requirement :
1. You should introduce an Index field where to keep the current record number, starting from 0 (zero)
2. Then you may introduce a new Report Group with Grouping set to :

= Fields.Index / Parameters.RowsOnPage.Value

where the parameter value is the number of data records that should be displayed on a single page
3. Set the group Footer Section PageBreak to After to force new vertical page break after each group

I have attached a sample report demonstrating the above scenario.

Regards,
Todor
Progress 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
Sơn
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or