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

Saved layout does not fill empty space

3 Answers 122 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Lowie
Top achievements
Rank 1
Lowie asked on 18 Apr 2013, 07:39 AM
Hi there

I've downloaded the WPF trial and I'm currently testing the latest version of RadDocking, but I've encountered a little problem.
When I relocate the two most right radpanes to the left and reload the window, the other two panes (not dockable) don't stretch to fill the whole window. You can find two images (before save and after save) below this post. 
Also my XAML-code:
<t:RadDocking x:Name="radDocking" HasDocumentHost="False" DragDropMode="Deferred">
        <t:RadDocking.CompassStyle>
            <Style TargetType="t:Compass">
                <Setter Property="IsCenterIndicatorVisible" Value="false" />
                <Setter Property="IsLeftIndicatorVisible" Value="false" />
                <Setter Property="IsRightIndicatorVisible" Value="false" />
            </Style>
        </t:RadDocking.CompassStyle>
        <t:RadDocking.RootCompassStyle>
            <Style TargetType="t:RootCompass">
                <Setter Property="IsTopIndicatorVisible" Value="false" />
                <Setter Property="IsBottomIndicatorVisible" Value="false" />
            </Style>
        </t:RadDocking.RootCompassStyle>
 
        <t:RadSplitContainer>
            <!--Left-->
            <t:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical"
                                 t:ProportionalStackPanel.RelativeSize="200,200">
                <t:RadPaneGroup AllowDrop="False"
                                t:ProportionalStackPanel.RelativeSize="200,100">
                    <t:RadPane PaneHeaderVisibility="Collapsed" CanFloat="False" CanUserClose="False" CanDockInDocumentHost="False"
                                CanUserPin="False" ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Customer"/>
                </t:RadPaneGroup>
 
                <t:RadPaneGroup AllowDrop="False"
                                t:ProportionalStackPanel.RelativeSize="200,300">
                    <t:RadPane PaneHeaderVisibility="Collapsed" CanFloat="False" CanUserClose="False" CanDockInDocumentHost="False"
                                CanUserPin="False" ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Ticket" />
                </t:RadPaneGroup>
            </t:RadSplitContainer>
 
            <!--Right-->
                <t:RadSplitContainer InitialPosition="DockedRight" Orientation="Vertical"
                                t:ProportionalStackPanel.RelativeSize="50,200">
                    <t:RadPaneGroup>
                        <t:RadPane Header="Boven" CanUserClose="False" CanUserPin="False" CanFloat="False"
                        ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Number">
                        </t:RadPane>
                    </t:RadPaneGroup>
 
                    <t:RadPaneGroup>
                        <t:RadPane Header="Onder" CanUserClose="False" CanUserPin="False" CanFloat="False"
                            t:RadDocking.SerializationTag="Other" ContextMenuTemplate="{StaticResource PaneContextMenuTemplate}" />
                    </t:RadPaneGroup>
                </t:RadSplitContainer>
 
        </t:RadSplitContainer>
 
        <!--Bottom-->
        <t:RadSplitContainer InitialPosition="DockedBottom">
            <t:RadPaneGroup Height="100">
                <t:RadPane PaneHeaderVisibility="Collapsed" Header="Output" IsPinned="False" CanFloat="False" CanUserClose="False" CanUserPin="False"
                    ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Bottom"  />
            </t:RadPaneGroup>
        </t:RadSplitContainer>
 
    </t:RadDocking>


Another question:
Can I move two dockable panes as one with one dockable pane and leave the possibility to change the position of the two inner dockable panes inside the 'root' dockable pane?
I've attached an image (TwoInOne.png) about my question. Here also some explainnig XAML-code:
<t:RadPaneGroup>
                <t:RadPane>
                    <t:RadSplitContainer InitialPosition="DockedRight" Orientation="Vertical"
                                t:ProportionalStackPanel.RelativeSize="50,200">
                        <t:RadPaneGroup>
                            <t:RadPane Header="Boven" CanUserClose="False" CanUserPin="False" CanFloat="False"
                        ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Number">
                            </t:RadPane>
                        </t:RadPaneGroup>
 
                        <t:RadPaneGroup>
                            <t:RadPane Header="Onder" CanUserClose="False" CanUserPin="False" CanFloat="False"
                            t:RadDocking.SerializationTag="Other" ContextMenuTemplate="{StaticResource PaneContextMenuTemplate}" />
                        </t:RadPaneGroup>
                    </t:RadSplitContainer>
                </t:RadPane>
            </t:RadPaneGroup>

When I try this with the above code, I receive a NullReferenceException.
System.NullReferenceException was unhandled by user code
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Docking
  StackTrace:
       bij Telerik.Windows.Controls.RadPaneGroup.IsSourceDockingCurrentDock(IDataObject draggedPayload) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:regel 1656
       bij Telerik.Windows.Controls.RadPaneGroup.OnDragOver(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:regel 1564
       bij Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragEventArgs.cs:regel 202
       bij System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bij System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bij System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bij System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       bij Telerik.Windows.DragDrop.IInputElementExtensions.RaiseEvent(DependencyObject d, RoutedEventArgs routedEventArgs) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DependencyObjectExtensions.cs:regel 82
       bij Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:regel 1737
       bij Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnOver(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:regel 1812
       bij System.Windows.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       bij System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bij System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bij System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bij System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       bij System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
       bij System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDragOver(Int32 dragDropKeyStates, Int64 point, Int32& effects)
  InnerException:

Thanks in advance
Lowie

3 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 23 Apr 2013, 08:54 AM
Hi,

We were able to reproduce the issue on our side and it seems there is a bug in the Docking control when the DragDropMode property of the control is set to Deferred. In this case if the layout is changed and then saved some Panes are not rendered correctly. We logged the issue in our Public Issue Tracker System where you can track its status.

I updated your Telerik points for bringing this to our attention, we apologize for any inconvenience that this may be causing.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Lowie
Top achievements
Rank 1
answered on 23 Apr 2013, 09:07 AM
Ok, thank you. I'm glad I pointed it out.
Can you answer my second question?

Thanks in advance
Lowie
0
Accepted
Vladi
Telerik team
answered on 24 Apr 2013, 07:49 AM
Hello,

The described scenario is a Dock in Dock scenario which is not supported in the current version of RadDocking control which is causing a NullReferenceException to be thrown.

We are currently doing a research about implementing such functionality in the RadDocking control in our future releases of RadControls and we will do our best to have this functionality as soon as possible.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Lowie
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Lowie
Top achievements
Rank 1
Share this question
or