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
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
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:
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
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
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
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