Crosstab report with subreport cell border

3 posts, 0 answers
  1. Draxtor
    Draxtor avatar
    7 posts
    Member since:
    Sep 2008

    Posted 24 Dec 2013 Link to this post

    Hi,
    I've created crosstab report using designer. In one cell I've added sub-report. Everything works
    What's the problem?
    If nothing is return height of the cell is the same as height of the sub-report. If I create conditional formatting rule (If no data hide sub-report) I got cells with OK height but without border.
    Can I define that cell itself has border or is there a possibility to shrink sub-report conditionally?
    In attachment you can see report with conditional hiding of subreport on (noborder.png) and off(border.png)
  2. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 25 Dec 2013 Link to this post

    Hello Drasko,

    A possible solution is to put a Panel item inside the Crosstab cell first and set the panel's Style.BorderStyle to Solid and Style.BorderWidth to 1px. Then place the SubReport item inside the panel. Thus, when the SubReport item is not visible due to conditional formatting, the Panel's border will still be visible.

    Another approach is to hide the detail report which acts as a sub-report dynamically e.g., if your detail report has only a Detail section, you can set the section's Visible = False conditionally. This can be done again by using Conditional Formatting.

    Regards,
    Nasko
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  3. DevCraft banner
  4. Draxtor
    Draxtor avatar
    7 posts
    Member since:
    Sep 2008

    Posted 25 Dec 2013 Link to this post

    Thanks Nasko panel solved my problem
Back to Top