Unplanned
Last Updated: 04 Apr 2016 08:25 by Ryan
ADMIN
Dimitar
Created on: 17 Dec 2015 10:57
Category: Dock
Type: Bug Report
2
FIX. RadDock - dragging a ToolWindow whose DockState is set to AutoHide is creating a floating window that contains all hidden windows.
To reproduce:
- Add a form with two auto-hidden windows - one on the left and one on the right.
- Drag one of the windows by just showing it (do not pin it)
- The floating window will contain both tool windows, instead of just the dragged one.

Workaround:
Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    RadDock1.DockWindow(ToolWindow2, DockPosition.Right)
    RadDock1.AutoHideWindows(New DockWindow() {ToolWindow2}, AutoHidePosition.Right)
    ToolWindow2.Tag = DockPosition.Right
 
    RadDock1.AutoHideWindow(ToolWindow1)
    ToolWindow1.Tag = DockPosition.Left
End Sub
 
Private Sub RadDock1_FloatingWindowCreated(sender As Object, e As FloatingWindowEventArgs) Handles RadDock1.FloatingWindowCreated
    For Each dw As DockWindow In CType(sender, RadDock).DockWindows
        If dw.Handle <> CType(sender, RadDock).ActiveWindow.Handle Then
            dw.DockState = dw.PreviousDockState
 
            RadDock1.AutoHideWindows(New DockWindow() {dw}, dw.Tag)
        End If
    Next
End Sub
1 comment
Ryan
Posted on: 19 Dec 2015 03:58
If you need to account for the user changing the DockPosition of any of the DockWindows at runtime, read the solution in the following post:

http://www.telerik.com/forums/how-to-get-dock-position-of-a-window#CC_3j65MbUuRrqhgWk8h2g