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

Crosstab report with subreport cell border

2 Answers 57 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Draxtor
Top achievements
Rank 2
Draxtor asked on 24 Dec 2013, 12:36 PM
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 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 25 Dec 2013, 01:04 PM
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.

0
Draxtor
Top achievements
Rank 2
answered on 25 Dec 2013, 02:50 PM
Thanks Nasko panel solved my problem
Tags
Report Designer (standalone)
Asked by
Draxtor
Top achievements
Rank 2
Answers by
Nasko
Telerik team
Draxtor
Top achievements
Rank 2
Share this question
or