Declined
Last Updated: 06 Feb 2015 09:50 by ADMIN
ADMIN
George
Created on: 04 Sep 2014 09:30
Category: Dock
Type: Bug Report
0
FIX. RadDock - Dragging a docked toolwindow creates an extra window
To reproduce:

Have a RadDock with a docked ToolWindow. Undock the ToolWindow by double-clicking it and dock it back. Now undock it by dragging it. If you now check the FloatingWindows collection you will see that there are two windows with the same name.

Workaround:

When iterating the windows, skip duplicates:

HashSet<string> iteratedWindows = new HashSet<string>();
foreach (FloatingWindow win in this.radDock1.FloatingWindows)
{
    if (iteratedWindows.Contains(win.Text))
    {
        return;
    }

    win.Visible = hide;
    iteratedWindows.Add(win.Text);
}

Resolution: 
The FloatingWindows property gets a list of the floating windows, can contain duplicates, empty or hidden toolwindows which are used internally as re-dock targets. Use the ActiveFloatingWindows property instead of it. 
1 comment
ADMIN
Ralitsa
Posted on: 06 Feb 2015 09:44
The issue is duplicated with item FIX. RadDock - Docking a floated window does not remove it from the FloatingWindows collection of RadDock. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link: http://feedback.telerik.com/Project/154/Feedback/Details/118625-fix-raddock-docking-a-floated-window-does-not-remove-it-from-the-floatingwindo