Thanks for the Demo Project but it is still not working for me.
In your example, go on and add 4 panes by clicking on the add panes button 4 times.
Try getting the value of RadDocking.Panes. It has 5 Pane (one of ur design time and 4 we added at runtime)
Now, close 2 panes created by runtime either by clicking X icon or the button you have placed on these panes.
Try getting the value of RadDocking.Panes. It still has 5 Pane.
I was expecting 3 Panes since I removed 2 from the parent.
Because of this, RadDocking.SaveLayout creates extra node into XML it generates and if you load your panes from this saved XML, it flickers.
Also, now with all the 5 panes on, make one of the Pane tabbed document. Now Count the RadDocking.Panes --- Now it is Only 4
and now if I do RadDocking.SaveLayout --- Tabbed Pane, even though I did not remove this, is not saved in the resultant XML String.
So, My question is :
1) When I am clicking X icon, that Pane should be gone from memory ie RadDocking.SaveLayout should not create a node for Pane I choosed to delete/remove.
How Do I achive this?
2) when I made a Pane tabbed document, I did not remove that from docking. So when I do RadDocking.SaveLayout, there should be a node for that so that I can reload that back.
How do I achieve this?
Appreciate your quick reply
The method AddItem is not meant to add panes to a pane group. You should use the Items collection instead. To remove an item (pane) from a pane group you should use the RemoveFromParent method of the pane, because most commonly you don't know where the pane is. Please, take a look at the attached example.
Hope this information helps.
the Telerik team