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

null columns not shrinking

1 Answer 101 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Lily
Top achievements
Rank 1
Veteran
Lily asked on 10 Jun 2019, 08:20 PM

Hi,

I have some columns that sometimes may have null values... I got the null rows to shrink with CanShrink = True in Layout property, but it seems this doesn't seem to work on the columns...I've attached some pics... Any help?

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 13 Jun 2019, 01:04 PM
Hi Lily,

Selecting a column will be accepted as a collection of textboxes. Note that they CanShrink only vertically. That is why the column doesn't shrink horizontally.
I suggest to apply a Conditional formatting rule with nested IIf to check if all of the column fields contain Null values. In the attached report I tried to imitate your crosstab and  the following rule is set on the column - ConditionalFormatting property:

Expression= IIf(Fields.techCodeColumn= "", IIf(Fields.upperPercent = "", IIf(Fields.Value = "", true, false), false),false)
Operator: =
Value: =true

Then set  the Style -> uncheck Visible -> OK.

Please, test the suggested approach and let us know whether it works for you.

Regards,
Neli
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Lily
Top achievements
Rank 1
Veteran
Answers by
Neli
Telerik team
Share this question
or