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

Multiple Monitor Support for Docking Not Working the Same as Previous Builds

4 Answers 55 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 26 Jul 2011, 06:09 PM
We have an application whose base shell window is nothing but the RadDock.  One of the best usages we have found (basically the reason we bought the tools) is the multiple monitor support where you allow the DocumentPane to float and therefore be mobile around all of the screen real estate.  We programmatically add these tabs/panes in our codebehind.  To date (being the last two months), we have used the following code to add a tab and it has worked flawlessly.  We new up a DocumentPane, throw in a user control, and it can fly around both screens.  With the Q2 release, we have lost the capacity to use both monitors.  You can drag the pane over to the secondary monitor, but it hits a "wall" and stops when the trailing edge of the pane reaches the near side of the secondary monitor.

Example:  My secondary screen is on my left side.  I start the app on the right monitor.  I click a menu item to instantiate the new pane.  I drag the pane from the right screen over to the left screen.  The pane goes onto the secondary screen fine until the right edge of the pane reaches the right side of the left monitor.  Then it stops.  At that point, I'm only about 50 pixels into the other screen.

I can resize the dragged pane to take up whatever space I want, but it stays "locked" onto the edge of the screen instead of free floating.  Is there an explanation as to why this behavior would change?

Thanks!
Doug

Code:

<telerik:RadDocking Name="dockApplication" Grid.Column="1" BorderThickness="1" BorderBrush="#B1B1B1"
                                        Library:DockingExtensions.RemovePanesWhenClosed="True" Background="#D3D3D3">
    <telerik:RadDocking.LayoutTransform>
        <ScaleTransform CenterX="0" CenterY="0" ScaleX="{Binding ElementName=scaleSlider, Path=Value}"
                        ScaleY="{Binding ElementName=scaleSlider, Path=Value}" />
    </telerik:RadDocking.LayoutTransform>
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer>
            <telerik:RadPaneGroup Name="panelGroupMain" AllowDragReorder="True"></telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
</telerik:RadDocking>


RadDocumentPane documentPane = new RadDocumentPane
                                {
                                    Content = control,
                                    CanDockInDocumentHost = true,
                                    CanFloat = true,
                                    CanUserClose = true,
                                    Header = "Tab " + _tabCount + " - " + title
                                };
 
panelGroupMain.AddItem(documentPane, DockPosition.Center);

4 Answers, 1 is accepted

Sort by
0
Doug
Top achievements
Rank 1
answered on 26 Jul 2011, 06:53 PM
Edit with more information:

It seems that the problem does not exist when you invert your monitors.  I was working on a piece of the application and launched a debug.  I put the main shell on my left screen (again, my left screen is my "extra").  When I went to move it back to my main screen (the right one), I accidentally grabbed the tab instead of the app window.  I dragged the tab panel over into the right screen and it moved freely around the screen.

So it seems that this problem is only occurring (at least for me) when the app is on the right-hand screen trying to move a panel into the left-hand screen.  Moving the app to the left-hand screen and placing a tab into the right-had screen does not appear to create this issue.

Also, I tried it with different themes to make sure it wasn't theme-based, and it doesn't seem to be.  We use the summer theme and I know there have been a few other posts where the dock has acted strange with either the Windows 7 or summer theme.  Nonetheless, this might be a pertinent piece of information.

Thanks again,
Doug
0
Doug
Top achievements
Rank 1
answered on 28 Jul 2011, 03:10 PM
Edit with more information:

We decided to switch to the metro theme (love it).  I am now encountering where the floating panel is "locked" to the primary display (primary being the Windows primary display).  The interesting thing is that no one else in my group is having this issue no matter the theme.  They all have the same desktop model, whereas I am the only one working on a laptop.  I have tried turning off hardware acceleration for WPF both at the app level and the registry level with no success.  The difference of course with my configuration is that my laptop is running one monitor out of its DVI out port and the other monitor out of its HDMI out port.  The other devs in my group all have true dual DVI cards and are seeing no errant behavior.  In Windows and in my NVidia settings, I only see two monitors.  I have my laptop's actual screen disabled.  I would almost bet that the issue is my particular configuration, but, if you have any suggestions as to any settings I might change so I can effectively test the app, I would be appreciative.  If not, I can leave the testing of the docking stuff up to another dev.

As long as we don't see this issue when we go beta, it's not so bad...although I would like to know what is going on behind the scenes.

Doug
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 01 Aug 2011, 09:09 AM
Hi Doug,

 Thank you for reporting us these issues. We are aware that they exist in the Q2 2011 release, but we managed to fix them and the fixed are included in the latest internal build.

If you experience some of the issues with the internal build, please let us know.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Doug
Top achievements
Rank 1
answered on 01 Aug 2011, 05:36 PM
Yes, the latest internal build did the trick!
Tags
Docking
Asked by
Doug
Top achievements
Rank 1
Answers by
Doug
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or