SplitContainer in Splitpanel Question

2 posts, 1 answers
  1. Marc
    Marc avatar
    15 posts
    Member since:
    Apr 2013

    Posted 17 Sep 2014 Link to this post

    Hi,

    i have a RadSplitContainer (Container1) with two SplitPanels Inside.

    In the first SplitPanel i have another RadSplitContainer(Container2) with two SplitPanels,  the second one should show my information.
    The first SplitPanel in Container2 has a RadTreeView inside for my menu.
    The second SplitPanel in Container2 has a Button to Collapse the first SplitPanel in Container2

    Now the behaviour is that, the first SplitPanel in Container2 is collapsed and the second SplitPanel in Container2 grows to the widht of the first SplitPanel in Container1.
    What i want is, that the second SplitPanel in Container1 grows the width of the first SplitPanel in Container2.

    Of Course if i press the button while the first SplitPanel in Container2 is collapsed, it should show the first SplitPanel in Container2 again and resize back.

    I've added three pictures:
    The Start.png is the application started
    The Stop.png is the behaviour at the moment
    The Wanted.png is the behaviour i want to have, if i press the button (Just moved the Slider by Hand)

    Thx

    P.S. If i use the Standard SplitContainer from WinForms i have a Property SplitterDistance, if i change this value i get the wanted behaviour, but changing to Standard WinForms Control is no option in my case





  2. Answer
    Marc
    Marc avatar
    15 posts
    Member since:
    Apr 2013

    Posted 17 Sep 2014 in reply to Marc Link to this post

    Nevermind,

    found this now http://www.telerik.com/forums/programmatically-setting-size

    Problem solved.
    Needed to Set the Absolute Size for the outer Panel. This did the trick

    thx
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top