This is a migrated thread and some comments may be shown as answers.
Redocking doesn't show the MdiContainer where to dock when maximized
2 Answers 6 Views
This is a migrated thread and some comments may be shown as answers.
sebastien
Top achievements
Rank 1
sebastien asked on 26 Feb 2018, 06:45 PM

Redocking doesn't show the MdiContainer where to dock when maximized

 

Way to reproduce:

  1. Undock a child form
  2. Put this ex-child form in full screen (maximized)
  3. Try to re-dock back into parent (Mdi container)

Printscreen shows the blue rectangle which the dimensions are the dockable container that could accept the docking of this child-form.

 

If I do the same thing in my VisualStudio environment, as soon as I start trying to dock back, I see the possible dockable container.

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 27 Feb 2018, 04:21 PM
Hi Sebastien,

Thank you for writing.

The reported behavior can be considered an issue and I have logged it on our feedback portal, here: FIX. RadDock - maximized floating windows should be restored to their Normal window state when started dragging. I have updated your Telerik points for the report. Additionally, you can subscribe to the item and be updated when its status changes.

As a possible workaround, you can handle the Starting event of the DragDropService and change the WindowState of the dragged window: 
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
         
        DragDropService service = this.radDock1.GetService<DragDropService>();
        service.Starting += Service_Starting;
    }
 
    private void Service_Starting(object sender, StateServiceStartingEventArgs e)
    {
        FloatingWindow fw = e.Context as FloatingWindow;
        if (fw != null && fw.WindowState == FormWindowState.Maximized)
        {
            fw.WindowState = FormWindowState.Normal;
            fw.Location = new Point(Cursor.Position.X - fw.Size.Width / 2, Cursor.Position.Y);
        }
    }
}

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
sebastien
Top achievements
Rank 1
answered on 27 Feb 2018, 05:03 PM
Workaround worked, thanks
Tags
Dock
Asked by
sebastien
Top achievements
Rank 1
Answers by
Hristo
Telerik team
sebastien
Top achievements
Rank 1
Share this question
or