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

Subreport inside of Detail do not grow.

1 Answer 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Allen Smothers
Top achievements
Rank 2
Allen Smothers asked on 07 Jun 2011, 08:37 PM
Hello,

I have the following report layout...

------------------------
Header
------------------------

Detail
Subreport1
Subreport2
Subreport3
Subreport4

------------------------
Footer
------------------------

Each of the subreports refuse to grow based on their data.

I'm binding the MasterReport to a datatable.  This is my detail_ItemDataBinding event which assigns some local variables of the subreport:

private void detail_ItemDataBinding(object sender, EventArgs evt)
{
    Telerik.Reporting.Processing.DetailSection detailSection = (Telerik.Reporting.Processing.DetailSection)sender;
 
    DataRowView row = (DataRowView)detailSection.DataObject.RawData;
 
    Telerik.Reporting.Processing.TextBox txtEntityName = (Telerik.Reporting.Processing.TextBox)detailSection.ChildElements.Find("txtEntityName", true)[0];
 
    if (txtEntityName != null)
        txtEntityName.Value = row["EntityName"];
}

In the design view, the subreports are each 0.4" in height and never increase when there is enough data to increase the size.  I'm not modifying the height of the subreports programmatically at runtime at all.

Any ideas on what could be going wrong?

Thanks in advance!
-Allen

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Jun 2011, 03:33 PM
Hello Allen,

The SubReport item itself is only a container for the inner report. Its dimensions are totally irrelevant, it is the report dimensions that are taken into account. The report sections are containers, which means that they always grow to accommodate their children. For example if a detail section grows based on a TextBox data, so will the SubReport.
So your post goes against the report design principles and we have not been able to reproduce this on our end. We would appreciate if you create a sample project even with a single report that does not grow inside the main report, although when run on its own grows correctly.
Once we review it, we would be able to provide you with more information.

All the best,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Allen Smothers
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or