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

enlarge\decrease RadPanes that under the same radPaneGroup

4 Answers 29 Views
Docking
This is a migrated thread and some comments may be shown as answers.
shay
Top achievements
Rank 1
shay asked on 02 Jun 2016, 07:40 AM

 

*I am using telerik:RadSplitContainer to wrap one paneGroup (and will holds more panes)

 The first Radpane is starting with the app, the second is floating RadPane that i am docked to the first RadPaneGroup and i want to change his size)

The scenario:

1. Appliction start with one RadPane

My start code:
 <telerik:RadDocking x:Name="dockEngineering" 
   <telerik:RadDocking.DocumentHost>
       <telerik:RadSplitContainer x:Name="MiddleContainer">
             <telerik:RadPaneGroup x:Name="myPaneGroup">
              <telerik:RadPane  Header="1" >
                      <user control/>
                </telerik:RadPane>
          </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
 </telerik:RadDocking>

2.Double click on a button open a floating RadPane (create from code)

3. I Docked the floating RadPane to the existing radPaneGroup (myPaneGroup)

Code for step 2 and 3:

creating RadPane from code and add it to the myPaneGroup :

myRadpane = new MyRadPane(myPaneGroup)    //MyRadPane is RadPane user control
myPaneGroup.Items(myRadpane )                         //add the radpane to specific PaneGroup
makeFloatingDockable()                                           //make it float

4. now in my application I have 2 panes (under the same RadPaneGroup ) side by side (looks ok in the UI)

 

*************************The problem**************

I want to enlarge\decrease the size of one of them - how can i do it?

Thanks

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 07 Jun 2016, 06:31 AM
Hi Shay,

I am not able to understand completely the scenario, especially the last step - how exactly the panes are located in the same panegroup side by side?
I have attached my test project based on the provided code, is it possible to modify it, so that it demonstrates the exact case and send it back to us?

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
shay
Top achievements
Rank 1
answered on 07 Jun 2016, 08:05 AM

Is it possible to have 2 RadPane side by side under the same pane Group?

in case the answer is Yes: can i resize the RadPanes?

0
Yana
Telerik team
answered on 07 Jun 2016, 12:35 PM
Hello Shay,

I am afraid this will not be possible. You could only have two PaneGroups in a single SplitContainer positioned side by side, check the following snippet:

<telerik:RadSplitContainer x:Name="MiddleContainer">
    <telerik:RadPaneGroup x:Name="myPaneGroup" telerik:ProportionalStackPanel.RelativeSize="200, 200" >
        <telerik:RadPane  Header="pane 1" >
            <TextBlock Text="test test" />
        </telerik:RadPane>
    </telerik:RadPaneGroup>
<telerik:RadPaneGroup x:Name="paneGroup2" telerik:ProportionalStackPanel.RelativeSize="400, 200">
    <telerik:RadPane Header="pane 2"></telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>


Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
shay
Top achievements
Rank 1
answered on 07 Jun 2016, 01:00 PM
Thanks 
Tags
Docking
Asked by
shay
Top achievements
Rank 1
Answers by
Yana
Telerik team
shay
Top achievements
Rank 1
Share this question
or