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

remove dockable panel & save

2 Answers 64 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Wolfgang
Top achievements
Rank 1
Wolfgang asked on 17 Oct 2007, 11:42 AM
I have a problem with removing dockable elements from panel, i registred a eventhandler and I call 
//pan.DockingSite.Remove(pan);
dckingManager1.PrimarySite.Remove(pan);

//dockingManager1.RemoveDocument(pan);


and than I call SaveLayout, but after loading panel is still there, if i however add a new dockable and save it it will persist .
in examples it is only possible to remove all nodes or add new nodes, so i can not see how (and if this can be implemented)


what i have to do to remove panel and save layout without thid panel ?
thanks
almir

2 Answers, 1 is accepted

Sort by
0
Wolfgang
Top achievements
Rank 1
answered on 17 Oct 2007, 11:46 AM
Additional info,

I have this problem ONLY if panels are floating arround, if they are docked-in somewhere it will work just fine.

0
Julian Benkov
Telerik team
answered on 17 Oct 2007, 01:41 PM
Hello Almir kazazic,

To remove the IDockable window regardless of the current DockSite (container / floating) you must use the DockingManager Remove function:

dockingManager1.Remove(pan); 

If this window is not used after the call to Remove, you can dispose it. The next step is to call SaveLayout.

I hope this was helpful. Feel free to contact us if you have additional questions.

Kind regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Wolfgang
Top achievements
Rank 1
Answers by
Wolfgang
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or