CollapsiblePanelContentSizingMode and restoring contained controls height not working as expected

3 posts, 0 answers
  1. Czeshirecat
    Czeshirecat avatar
    30 posts
    Member since:
    Jun 2016

    Posted 10 Jul Link to this post

    I've a RadCollapsiblePanel that contains a radpanel (dockstyle.left) plus a  radsplitcontainer (dockstyle.fill).

    The radcollapsiblepanel sizing mode is set to .FitToContentHeight.

    It collapses ok, but when it expands it seems to resize to the content height correctly but the contents aren't being restored with it. See attached file.

    I've tried resetting the contained splitcontainer dock to botton, then fill, but that made no difference.

  2. Czeshirecat
    Czeshirecat avatar
    30 posts
    Member since:
    Jun 2016

    Posted 10 Jul in reply to Czeshirecat Link to this post

    Oh. Ive realised what was going wrong. The collapsible panel was resizing itself to the original size, but that was happening after the dockstyle.fill event was firing on the splitcontainer child control. So that was resizing to 2 pixels high (tbh, that should have received a resize to force it to fill the space).

    Ive changed the dockstyle of the splitcontainer to dockstyle.top which prevents it changing the height. Im just hoping that the theming doesn't lose child controls from the splitcontainer when they're resized by theming. (I feel really sorry for you telerik devs. Oh my!)

     

  3. Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 11 Jul Link to this post

    Hello Claire,

    I am glad that you have found a solution for this case. As to the themes at hand, please note that they do not change the size of the controls (except the touch themes).  

    Do not hesitate to contact us if you have other questions.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top