Problem with RadDocumentPane closing

2 posts, 0 answers
  1. Sergey
    Sergey avatar
    58 posts
    Member since:
    Jan 2013

    Posted 07 Mar 2013 Link to this post

    Hello. I have one problem. When I click button "Close" on RadDocumentPane I see that pane is closed. But when I try to save layout I see that this pane is hidden. I need to disable hidding pane when I click button "Close". How ca I do it? Thanks.
  2. Vladi
    Vladi avatar
    743 posts

    Posted 11 Mar 2013 Link to this post

    Hi Sergey,

    By design when a Pane's Close button is pressed the its IsHidden property is set to True, this is done in order to be able to show the closed Pane at a later stage if needed.

    You can permanently remove the Pane by calling its RemoveFromParent() method. You could do that in the Close event of the Docking control. The next code snippet shows the described approach:
    in the xaml:
    <telerik:RadDocking x:Name="dock" Close="dockClose">

    and in the code behind:
    private void dockClose(object sender, Telerik.Windows.Controls.Docking.StateChangeEventArgs e)
        var closedPanes = e.Panes as IEnumerable<RadPane>;
        foreach (var pane in closedPanes)

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top