This is a migrated thread and some comments may be shown as answers.

SplitContainer in Splitpanel Question

1 Answer 103 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Dk
Top achievements
Rank 1
Dk asked on 17 Sep 2014, 05:36 PM
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





1 Answer, 1 is accepted

Sort by
0
Accepted
Dk
Top achievements
Rank 1
answered on 17 Sep 2014, 05:47 PM
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
Tags
SplitContainer
Asked by
Dk
Top achievements
Rank 1
Answers by
Dk
Top achievements
Rank 1
Share this question
or