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

OnClose problem

1 Answer 42 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 22 Jun 2012, 10:54 PM
Shouldn't this code prevent the close from happening?

void OnClose(object sender, Telerik.Windows.Controls.Docking.StateChangeEventArgs e)
{
    e.Handled = true;
}

The problem is that with the latest build 2012.2.620, after executing the following code, RadDocking throws an exception in Close() be cause the RadPaneGroup.Items have been cleared.  This does not happen in version 2012.2.607; in that version this works like a charm.
void OnClose(object sender, Telerik.Windows.Controls.Docking.StateChangeEventArgs e)
{
    RadPane pane = e.Panes.ToList()[0];
    RadPaneGroup group = pane.PaneGroup;
    if (closeAll)
    {
        group.Items.Clear();
        e.Handled = true;
    }
}

Thanks in advance,
Steve






1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 27 Jun 2012, 12:26 PM
Hi Steve,

We were able to reproduce the issue, and it is indeed introduced in the 2012.2.620 LIB. Also we have located the cause of the problem and the fix should be available in our next internal build.
Your Telerik points have been updated for the report.

All the best,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Docking
Asked by
Steve
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or