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

Toggle.Visibility does not collapse the white space

6 Answers 534 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bi Chao
Top achievements
Rank 1
Bi Chao asked on 28 Feb 2011, 07:26 AM
Hi,

What I want to achieve is to hide the panel by clicking a hyperlink. The panel can be hided without problem, however, the whitespace is still there. For example, if the panel takes half a page in the document template, half of the page will be blank after toggle.

Is it possible to make the things work just like the toggle function in html?  If yes, could you provide me with a sample project or code?


Regards
Bill

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Mar 2011, 06:37 PM
Hi Bi Chao,

When an item is hidden, the default behavior is to move all of the items below to an upper position. However if you hide an item that is on the same Y axis as the hidden one, the items below will move to that item and will not be able to move on upper position. I have attached a sample project to illustrate that behavior. If you experience any further troubles, will appreciate if you elaborate more on your scenario or send us a sample project that exhibits the described behavior.

Regards,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Bi Chao
Top achievements
Rank 1
answered on 02 Mar 2011, 01:18 AM
Hi,

Thanks for your response! 

I tried the project that you provided, but my issue seemed a bit different.  I have attached two pictures to illustrate my issue:
0
Bi Chao
Top achievements
Rank 1
answered on 02 Mar 2011, 01:21 AM
The html.PNG shows our html implementation of the reports.  You can see step 1.1 and 1.2 are very close after collapsed.

In contrast, In telerik.PNG, there is a big space between step 1 and step 2 after collapsed.

Because we are using telerik Reporting to build documents, we really care about how the document flow behave vertically.  We would prefer to shrink the document after toggle visibility rather than keep lots of white spaces between two lines.


Regards
Bill
 
0
Bi Chao
Top achievements
Rank 1
answered on 02 Mar 2011, 11:20 PM
Hi, 

I have just raised a ticket(399603) to attach the sample report that Im working and hope this could help in resolving this problem.  The white space is really preventing me to deliver the report professionally.  And this issue is becoming urgent now.

We are using the trial version and I wonder if this is the cause of the problem.  We have purchased the RadControls for SL and WebAii.  If the reporting works for us,  we will definitely buy it.


Regards
Bill
0
James
Top achievements
Rank 1
answered on 04 Mar 2011, 07:30 AM
Hi guys,

The white space in the report that Bill sent you is the only issue for us now.  Please let us know if there is any progress. 

To me, it looks like the height of the parent panel is not updated after the chile panel is hided.

Cheers
James
0
Accepted
Peter
Telerik team
answered on 07 Mar 2011, 03:54 PM
Hi James,

We have examined Bill's project. The cause for the left empty space is that he is hiding items within the containers and the expected result is to collapse the containers.  However the containers aren't capable to decrease their size, they can only grow. Thus to avoid this behavior, he has to set the List's rows size to a very small value. This will emulate the collapsing behavior for the containers (Lists). Additionally he can set the Panels' and Lists' Height to one pixel from code behind to further collapse the containers.

Regards,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Bi Chao
Top achievements
Rank 1
Answers by
Peter
Telerik team
Bi Chao
Top achievements
Rank 1
James
Top achievements
Rank 1
Share this question
or