This is a migrated thread and some comments may be shown as answers.
DockControl adds control to HostWindow, need DocumentWindow
1 Answer 17 Views
This is a migrated thread and some comments may be shown as answers.
Wardeaux
Top achievements
Rank 1
Wardeaux asked on 12 Apr 2019, 03:35 PM

I have a raddock and i add a usercontrol to the raddock DocumentWindow using :
            HostWindow host2 = this.rdkMain.DockControl(estPanel2, winProject, Telerik.WinControls.UI.Docking.DockPosition.Fill,DockType.Document);
The window shows up correctly in the RadDock, however the underlying type is HostWindow (which behaves like a ToolWindow) and not a DocumentWindow. I need a DocumentWindow so that when I Float this window it appears like my other DocumentWindows. See attached images.

TabsDocked image shows the tabs appear correctly when docked, HostWindow is Estimate2, the DocumentWindow is documentWindow1

TabsFloating you can see that the tabstrip displays differently between floating as a HostWindow and a DocumentWindow because the HostWindow is "interpreted" as a ToolWindow. I know there are other differences between ToolWindows and DocumentWindows, so I want to stay with the full DocumentWindow implementation and appearance if at all possible... 

How can i add a usercontrol to the Dock as a DocumentWindow?

Many thanks in advance


1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 16 Apr 2019, 06:32 AM
Hi Ward,

I have already logged this on your behalf: RadDock: the floating window type is not correct when docking forms and user controls. We will do our best to fix this for the next official release. Please note that now we are releasing internal build on a regular basis as well: Latest Internal Builds.

Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Dock
Asked by
Wardeaux
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or