Hello, I'm trying to use RadSplitpanels / RadPanels / Docking.
Basically, i have 1 "Main" pane. setup as the DocumentHost.
When the user first hits the page, i'd like 3 panes to Defualt to being shown on the screen, docked at various parts of the "Main" pane. User should be allowed to close the Docked Panels, Move them, group them, etc.. and click a button to get any closed panes back.
this all sounds easy, but it isn't quite working as i was expecting.
here a code sample:
<telerikDocking:RadDocking x:Name="docking" Margin="-8,0,8,0" > |
<telerikDocking:RadDocking.DocumentHost> |
<telerikDocking:DockingPanel> |
<Grid> |
<Grid.RowDefinitions> |
<RowDefinition /> |
</Grid.RowDefinitions> |
<!- Other Content goes here -> |
<Button Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="20,0,0,0" Content="Open pane 1" Height="20" Width="160" Click="Button_Click"/> |
<Button Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="180,0,0,0" Content="Open pane 2" Height="20" Width="160" Click="Button2_Click"/> |
<Button Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="340,0,0,0" Content="Open pane 3" Height="20" Width="160" Click="Button3_Click"/> |
</Grid> |
</telerikDocking:DockingPanel> |
</telerikDocking:RadDocking.DocumentHost> |
<telerikDocking:RadSplitContainer InitialPosition="DockedRight" x:Name="split1" Orientation="Vertical"> |
<telerikDocking:RadPaneGroup x:Name="group1"> |
<telerikDocking:RadPane x:Name="pane1" /> |
</telerikDocking:RadPaneGroup> |
<telerikDocking:RadPaneGroup x:Name="group2"> |
<telerikDocking:RadPane x:Name="pane2" /> |
</telerikDocking:RadPaneGroup> |
</telerikDocking:RadSplitContainer> |
<telerikDocking:RadSplitContainer InitialPosition="DockedBottom" x:Name="split2" Orientation="Horizontal"> |
<telerikDocking:RadPaneGroup x:Name="group3"> |
<telerikDocking:RadPane x:Name="pane3" /> |
</telerikDocking:RadPaneGroup> |
</telerikDocking:RadSplitContainer> |
</telerikDocking:RadDocking> |
it seems that when a pane is docked & pinned, clickign the "Close" (X) button in the pane will hide the pane. I have had success with making them Re-appear.
But, if the user has undocked the pane, and then closed it. there seems to be no way to get it to reappear.
secondly;
the following code only seems to work one time.
MyUserControl uc1 = new MyUserControl(); |
uc1.InitialPosition = Telerik.Windows.Controls.Docking.DockState.FloatingDockable; |
docking.Items.Add(uc1); |
Am i just going about this completely wrong? or is this a limitation of the control? if i'm completely wrong, a code sample showing what i'm tryin to accomplish would be appreciated.