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

Detail Section Group Together and Sub Reports

1 Answer 145 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
HN
Top achievements
Rank 1
HN asked on 08 Aug 2014, 05:35 PM
I have a telerik report designed as follows. - Windows Forms

The detail section has a number of sub reports (4 in this case)  which are bound by lists. 
Some sub reports are visible or not visible depending on data. The detail section is being rendered in one page and in case, there is less data in sub reports
there is a lot of space left beneath it . The section goes into new page again for next data.

I am not able to change the keep together property of detail section. It is kept to true and says that I have to enable docking to make it false.
I have changed the sub report detail section's  keep together to false but it doesnt work. 

Any help appreciated. Thanks

HN

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 13 Aug 2014, 12:19 PM
Hello HN,

If the data in the sub reports is only tabular, you can substitute the SubReport items with Table/List/Crosstab items. The Table/List/Crosstab item is a data item with its own DataSource and ordering, filtering and grouping functionality.
The item can be bound to data as in the following articles:
The usage of the Table item instead of the sub report is also preferable from performance point of view - Performance Considerations.


About the current layout, using anchoring and docking is not recommended. Setting the Visible property of the SubReport item based on the sub report's data will hide the item and free the occupied space. This can be accomplished from the sub report, by adding a binding in the sub report as follows:
in sub report:
-------------------
Bindings:
Property path: Parent.Visible
Expression: expression or function evaluating the number of data records

Positioning the items is also important to avoid the additional space on the page. You can use the approach described in the Collapse the container when hiding child report items KB article to shrink items and sections.

If you need further help, please open a support ticket and send us the report files, including test data or hard-coded values in the report that allow us to preview the reports.

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