Completed
Last Updated: 02 May 2019 16:07 by ADMIN
Release R2 2019
Denis
Created on: 05 Apr 2019 05:25
Category: Dock
Type: Bug Report
1
RadDock: incorrect docking guides are show when the MainDocumentContainerVisible property is set to false

1. Add 4 ToolWindows - left, top, right, bottom. 

2. Add one DocumentWindow at the center.

3. In the Load event set the MainDocumentContainerVisible property to false. 

Please refer to the attached sample gif files. Even though the document container is not shown, the docking guides for the tabbed document are visible. 

1 comment
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 05 Apr 2019 05:30
Hello, Denis,    

Thank you for reporting this. Indeed, the docking guides for tabbed documents shouldn't be displayed when the MainDocumentContainerVisible  property is set to false

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to handle the DragDropService.PreviewDockPosition event and specify the AllowedDockPosition argument in order to control which docking guides to show.

public RadForm1()
{
    InitializeComponent();
  
    DragDropService service = this.radDock1.GetService<DragDropService>();
    service.PreviewDockPosition += service_PreviewDockPosition;
}
  
private void service_PreviewDockPosition(object sender, DragDropDockPositionEventArgs e)
{
    e.AllowedDockPosition = AllowedDockPosition.Left | AllowedDockPosition.Right | AllowedDockPosition.Top | AllowedDockPosition.Bottom ;
}

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.