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

Docking LayoutStream Problem

1 Answer 17 Views
Docking
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 07 Feb 2013, 12:34 PM
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

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 11 Feb 2013, 12:37 PM
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.

Tags
Docking
Asked by
ITA
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or