Resize parent panel if child element is not visible

4 posts, 0 answers
  1. Markus
    Markus avatar
    6 posts
    Member since:
    Sep 2014

    Posted 10 Feb 2017 Link to this post

    Dear Telerik team

     

    Our report layout is according to the images in the appendix and displays a list with mechanical checkpoints:

    - tableCheckpoint (always displayed)

    - panelSpareparts (only visible if Fields.Parts.Count > 0)

    - panelImage (only visible if Fields.ImageRows.Count > 0)

     

    Further:

    - All dockings are set to "Top"

    - The parent panel "panelCheckpoint" has a binding for Height: = '12mm'

     

    The parent panel "panelCheckpoint" is resizing correctly except for the case panelImage = visible and panelSpareparts = not visible (see image).

    I tried to set "panelCheckpoint" binding Height by formula (to a manually calculated value) but if the Height value is smaller than '12mm' the list is not showing all checkpoints (is this a bug?).

    Any suggestion what I should do?

    Thanks and regards

    Markus

  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 13 Feb 2017 Link to this post

    Hi Markus,

    As of R3 2016, sections and Panel item support CanShrink allowing them to collapse if there is no content.
    In case of using older version, you will have to verify elements are organized correctly in Panel items, allowing them to move up if space is freed. Then you can apply a binding to the container's Height property to make it shrink based on the content.

    For more details, please check How Report Items are Arranged in a Section and Visibility.


    I hope this helps.

    Regards,
    Stef
    Telerik by Progress
    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
  3. Markus
    Markus avatar
    6 posts
    Member since:
    Sep 2014

    Posted 15 Feb 2017 Link to this post

    Hello Stef,

    We use Version R3 2016 SP1 (10.2.16.1025) and CanShrink is enabled on all Panel...

    Regards,

    Markus

  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 15 Feb 2017 Link to this post

    Hi Markus,

    In such case, you can work with the sections and Panel items' CanShrink properties. Also reset all Docking and Anchoring properties and use only the items Location and Size properties. The idea is that items preserve the space between them, and when there is freed space items can occupy the space automatically.

    Regards,
    Stef
    Telerik by Progress
    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
Back to Top