Toggle.Visibility does not collapse the white space

7 posts, 1 answers
  1. Bi Chao
    Bi Chao avatar
    28 posts
    Member since:
    Mar 2010

    Posted 28 Feb 2011 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 01 Mar 2011 Link to this post

    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!
  3. DevCraft banner
  4. Bi Chao
    Bi Chao avatar
    28 posts
    Member since:
    Mar 2010

    Posted 01 Mar 2011 Link to this post

    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:
  5. Bi Chao
    Bi Chao avatar
    28 posts
    Member since:
    Mar 2010

    Posted 01 Mar 2011 Link to this post

    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
     
  6. Bi Chao
    Bi Chao avatar
    28 posts
    Member since:
    Mar 2010

    Posted 02 Mar 2011 Link to this post

    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
  7. James
    James avatar
    26 posts
    Member since:
    Oct 2008

    Posted 04 Mar 2011 Link to this post

    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
  8. Answer
    Peter
    Admin
    Peter avatar
    1611 posts

    Posted 07 Mar 2011 Link to this post

    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!
Back to Top
DevCraft banner