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

Delete/Remove RadDock

2 Answers 243 Views
Dock
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 17 Mar 2008, 08:10 PM
I've successfully created my RadDocks dynamically, but now I want to delete/remove them.  Using 'RadDockZone1.Controls.Remove(dock)' visibly removes the dock from my screen, but when I click my 'Save' button and loop through my RadDockZone, the 'removed' dock still exists.

How do I remove it properly?

Thanks,

JJ

2 Answers, 1 is accepted

Sort by
0
Accepted
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 18 Mar 2008, 04:30 PM
As far sa I know RadDock can  be Hidden/Showed(not removed). This behavior is controled by Closed property, or pressing the RadDock Close command.
You create the controls dynamically, so if a RadDock is closed, you should not create it.
0
JJ
Top achievements
Rank 1
answered on 18 Mar 2008, 04:38 PM
Thanks Master Kenobi.

JJ
Tags
Dock
Asked by
JJ
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
JJ
Top achievements
Rank 1
Share this question
or