Docking LayoutStream Problem

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 07 Feb 2013 Link to this post

    HI,

    i use a RadDocking- Control and add Panes by code:
    RadPane radPane = new RadPane() { Title = panename_s, Name = name_s };
    RadDocking.SetSerializationTag(radPane, panename_s);
    RadPaneGroup radPaneGroup = new RadPaneGroup();
    RadSplitContainer radSplitContainer = new RadSplitContainer() { InitialPosition = DockState.FloatingDockable };
     
    Controls.LayoutData MyControl = new Controls.LayoutData();
    MyControl.Name = name_s;
    radPane.Content = MyControl;
    radPaneGroup.Items.Add(radPane);
    radSplitContainer.Items.Add(radPaneGroup);
    Docking.Items.Add(radSplitContainer);

    This works fine. Now add one  (AAA) Pane and save this layout to a xml-file. A second pane will be created (BBB). Now i delete
    the second pane (BBB) and save the layout again. How do i delete this second pane from the LayoutStream? In my void "Docking_Element"-Method this second pane is still shown!

    Thanks
    Best Regards
    Rene

  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 11 Feb 2013 Link to this post

    Hello Rene,

    When a Pane is closed via its Close button it is not really closed but rather its IsHidden property is set to true. This is done by design in order to be able to restore the closed Panes if necessary later on.

    If you want to remove a RadPane completely you will need to call its RemoveFromParent() method.

    As we see you have posted about related issue here and here you can find answers to those issues in those posts also we created and attached a sample project that shows how to achieve the described scenarios on those posts and this one.

    Greetings,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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