OnClose problem

2 posts, 0 answers
  1. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 22 Jun 2012 Link to this post

    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






  2. Georgi
    Admin
    Georgi avatar
    348 posts

    Posted 27 Jun 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top