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

Openedge Client crash for Docked Windows

1 Answer 4 Views
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 07 Nov 2018, 11:44 PM

We have found during testing that ToolWindows can be moved completely out of the container and act as its own window, which is awesome.

However when the form is closed the entire openedge session crashes.

Is there a way during the FormClosing event to close these windows?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 08 Nov 2018, 07:51 AM
Hello Terry,

We are not aware of a similar issue with the dock control and the floating windows. Closing the form with the RadDock will also close and dispose of the floating windows. The issue might be related to the current application set up in the OpenEdge environment. You can try handling the FormClosing event, and then iterate each of the active floating windows: 
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();
 
        this.FormClosing += RadForm1_FormClosing;
    }
 
    private void RadForm1_FormClosing(object sender, FormClosingEventArgs e)
    {
        foreach (FloatingWindow fw in this.radDock1.ActiveFloatingWindows)
        {
            fw.Close();
        }
    }
}

I hope this will help.

Regards,
Hristo
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.
Tags
Dock
Asked by
Terry
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or