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

CanShrink with empty textboxes

12 Answers 399 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Damian
Top achievements
Rank 1
Damian asked on 02 Jan 2009, 04:08 PM
Has anyone had any luck using the CanShrink property to cause text boxes to move up when the textboxes above them are empty. It is described in the final example of the link below but I can't make it work.

http://www.telerik.com/help/reporting/faqshrinktextboxeswithnodata.html
Thanks,

Damian.


12 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 Jan 2009, 02:30 PM
Hi Damian,

We've already addressed your support inquiry and would look into the issue. For the time being please set really small height for the "blanked" textbox item and it would not take up any space when empty, but would grow whenever there is data.

Sorry for the temporary inconvenience once again.

Sincerely yours,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mercell
Top achievements
Rank 2
answered on 09 Jan 2009, 12:26 PM
Hi Steve

We have a similar problem in our reports, some of them with around 100 textboxes so setting the height to something small would require a lot of work for us AND when the problem is fixed we can spend time setting them back to their "normal" height to make the reports look ok in the designer view i Visual Studio.
 
Do you know when this is fixed or can you provide us with a patch?

We are releasing late january and our tests has already started so we need it a lot.

Thanks,
Brian
0
Steve
Telerik team
answered on 09 Jan 2009, 01:04 PM
Hello Bo,

Our developers have addressed the problem and it would be part of the Q3 SP2 release expected in a couple of weeks.

Please excuse us for the temporary inconvenience.

Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mercell
Top achievements
Rank 2
answered on 19 Jan 2009, 07:35 AM
Hi Steve

Anything new about the Q3 SP2 release? As far as I can see it wasn't released last week.

Thanks,
Brian
0
Steve
Telerik team
answered on 19 Jan 2009, 11:15 AM
Hello Bo,

Some last minute refinements and testing that goes along with it forced us to move the release date for this week.

Sorry for the inconvenience caused once again.

Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mercell
Top achievements
Rank 2
answered on 22 Jan 2009, 10:39 AM
Hi Steve

Sorry to disturb you again but will it be today or tomorrow the SP2 will be released?

If not could you supply us with a patch?

Thanks,
Brian
0
Steve
Telerik team
answered on 22 Jan 2009, 10:58 AM
Hello Bo,

We're working hard on the service pack, but at this point we cannot specify exact release date, although we are doing our best to be as soon as possible. The problem you reported is long time fixed, but as we are in final preparations, we cannot engage with producing a custom build for it, as this would slow us even more.

Thank you for the patience and understanding.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Morten Louw
Top achievements
Rank 1
answered on 07 Feb 2009, 09:04 PM
Hi,

I'm having the same problem. If the content is empty it remains at the same height. I thought it should collapse to a zero height.

I just updated my telerik reporting in my development environment and the problem remains.
The DLL's version is 2.9.9.202. I think it's from the 2nd of february.

Are there more settings needed than the canshrink property?

Kind regards,
Morten
0
Steve
Telerik team
answered on 11 Feb 2009, 04:43 PM
Hi Morten,

Unfortunately this is a different bug with the same manifestation and we sincerely apologize for this omission on our end. We've already identified the cause of the problem and it would be addressed in the next Telerik Reporting release.
For the time being, as a workaround, please use either the suggested approach in the second post of this thread, or apply conditional formatting so that when items are empty it would set the item Visibility to false.

Please excuse us for the inconvenience. Your Telerik points have been updated for bringing this to our attention.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Datamex
Top achievements
Rank 2
answered on 08 Jun 2011, 10:25 AM
Hi, 

Has this already been fixed? I have two TextBoxes in my DetailSection with both CanGrow and CanShrink properties set to "True", but whenever both TextBoxes are empty the space is still reserved and I see some whitespace in my report between rows. I really want these TextBoxes to be hidden whenever they are empty, so that I don't see the reserved whitespace anymore.

Any ideas? Thanks in advance!

Regards,
Datamex

0
IvanDT
Telerik team
answered on 08 Jun 2011, 04:48 PM
Hello Damian,

The described behavior is happening because container items grow to accommodate all of their children even though they are set to shrink and they are empty.

The solution is to set the height of your detail section to a minimum possible height after the InitializeComponent():

this.detail.Height = new Telerik.Reporting.Drawing.Unit(0.000001, Telerik.Reporting.Drawing.UnitType.Inch);


Regards,
IvanDT
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
0
Michael Yereniuk
Top achievements
Rank 1
answered on 26 Aug 2011, 03:26 PM
@Datamex, I have encountered the same problem as you're describing.

On a whim, I adjusted my MS SQL call to convert the null values into empty strings ('') and the report's shrink property worked as expected.

My detail section was still too tall, so I implemented the change suggested by IvanDT on the Jun 8, 2011 post and report is formatted the way I want now.

Hope this helps!

Michael
Tags
General Discussions
Asked by
Damian
Top achievements
Rank 1
Answers by
Steve
Telerik team
Mercell
Top achievements
Rank 2
Morten Louw
Top achievements
Rank 1
Datamex
Top achievements
Rank 2
IvanDT
Telerik team
Michael Yereniuk
Top achievements
Rank 1
Share this question
or