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

Splitting Data on report Dynamically

1 Answer 258 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 16 Dec 2015, 06:21 PM

If I have a table on a report that I want to be filled with lets say 10 rows but if the data source goes over that amount I want to move the remainder of the data to another control on a different page. Is that possible? The idea is somewhat like and overflow but to a different location.

Thank You

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 21 Dec 2015, 02:30 PM
Hello Tom,

The Table item does not support page breaks. It is a feature considered for implementation you can vote for on our feedback portal - Page Break in Table or TableGroup.

Instead I can suggest you the following:
  1. Use the report's section directly to visualize data (use the Band Wizard). Report sections support PageBreak. For more details check Conditional Page Breaks, where the expression would be like:
    = IIF(RowNumber()%10=0, PageBreak.Before, PageBreak.None)
  2. Re-organize data and include a field that can be used to group data in chunks of 10 records. Bound the report to the data and add a group in the report based on that field. Then place a Table item in the GroupHeaderSection and bind the Table item via expression like:
    Property path: DataSource
    Expression:  = ReportItem.DataObject
    Finally, set the GroupHeaderSection.PageBreak property.

    More details about the ReportItem.DataObject can be found in How to use the ReportItem.DataObject property in expressions.


Let us know if you need any further help. Please feel free to open a support ticket and send us an example with the report and sample data to test it locally.

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
Tom
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or