Shouldn't this code prevent the close from happening?
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.
Thanks in advance,
Steve
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