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

Collapse invisible section

1 Answer 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tormod
Top achievements
Rank 2
Tormod asked on 27 Jun 2013, 09:46 AM
Hi. 

I bind against a ObjectDataSource that expose boolean properties that shall decide which of three versions of a particular table I display.

The detail section of the report is pretty large and this "polymorphic" table is a small part of it.

I bind the table Datasource against the "ReportItem.DataObject" property and its Visible attribute against the associated boolean.

However, these tables differ in size, and I would like to avoid the whitespace.

I could stack them on top of eachother (z order) in a panel that has "CanShrink" set to true, but this makes it hard to edit the report in the designer.

Is there any solution where:
  • I work with them in the designer, 
  • only the ones that evaluates to Visible=true will be displayed
  • no white space left after the ones that evaluates to Visible=false.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Jul 2013, 11:12 AM
Hi Tormod,

Telerik Reporting report items behavior is to grow, but they can't shrink. In your case, you can shrink the detail section by setting its height property to a very small initial value. This way, the detail will grow if they have data and if they don't, they will take virtually no space. For the purpose, you need to set detail section height with Binding as shown in the following example:

 Property path

Expression

Height

="1px"

Additionally you may find useful the Design Considerations for Report Item Layout help article.

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Tormod
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or