DockControl adds control to HostWindow, need DocumentWindow

2 posts, 1 answers
  1. Wardeaux
    Wardeaux avatar
    38 posts
    Member since:
    Aug 2006

    Posted 12 Apr 2019 Link to this post

    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

  2. Answer
    Dimitar avatar
    2932 posts

    Posted 16 Apr 2019 Link to this post

    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.
    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.
Back to Top