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

3 posts, 1 answers
  1. sebastien
    sebastien avatar
    42 posts
    Member since:
    May 2017

    Posted 26 Feb 2018 Link to this post

    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. Answer
    Hristo
    Admin
    Hristo avatar
    1520 posts

    Posted 27 Feb 2018 Link to this post

    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.
  3. sebastien
    sebastien avatar
    42 posts
    Member since:
    May 2017

    Posted 27 Feb 2018 in reply to Hristo Link to this post

    Workaround worked, thanks
Back to Top