Subreport inside of Detail do not grow.

2 posts, 0 answers
  1. Allen Smothers
    Allen Smothers avatar
    40 posts
    Member since:
    Nov 2006

    Posted 07 Jun 2011 Link to this post


    I have the following report layout...




    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!
  2. Steve
    Steve avatar
    10941 posts

    Posted 08 Jun 2011 Link to this post

    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,
    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
  3. DevCraft banner
Back to Top