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

Movable document window

2 Answers 121 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Slicc
Top achievements
Rank 1
Slicc asked on 24 Jun 2012, 05:30 AM
If I add a tool window to a RadDock I can drag the window off the form to create a new window. If I add a document window, however, I cannot drag it off the form to create a new form like window. Can anyone advise what my options are here? Slicc

2 Answers, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 27 Jun 2012, 07:44 AM
Hi Steven,

This feature is valid only for ToolWindow type of dock windows. The ToolWindow type of dock windows supports floating DockState and can also be docked in Document window container like a DocumentWindow instance. To support this functionality in your application, please change the instance of DocumentWindow with ToolWindow. Here is a sample example:

using System.Windows.Forms;
using Telerik.WinControls.UI.Docking;
 
namespace Lab.Dock
{
    public partial class DockDocumentToolWindow : MainForm
    {
        private RadDock radDock = new RadDock();
 
        public DockDocumentToolWindow()
        {
            InitializeComponent();
 
            radDock.Dock = DockStyle.Fill;
            radDock.Parent = this;
            radDock.BringToFront();
 
            DocumentWindow window = new DocumentWindow("MyDocument");
            
 
            ToolWindow tool = new ToolWindow("MyTool");
            radDock.DockWindow(tool, DockPosition.Right);
 
            radDock.AddDocument(window);
            radDock.AddDocument(tool);
        }
    }
}

Please view the attached screenshots for the result of ToolWindow dock operations.

Greetings,
Julian Benkov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Slicc
Top achievements
Rank 1
answered on 27 Jun 2012, 06:23 PM
That looks ideal. Thanks, Slicc
Tags
Dock
Asked by
Slicc
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Slicc
Top achievements
Rank 1
Share this question
or