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

DockCloseCommand problem. Dock not getting un-registered when closed

2 Answers 62 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 12 May 2009, 11:18 AM
Following your dynamic dock example, i see there is an issue with closing dynamic docks. 

When obtaining the GetRegisteredDocksState(), all closed (removed from dock zones) docks are still showing up as being registered to the dock zone. Is this by design ? or does the DockCloseCommand() not automatically un-register these closed docks ?

Thanks


2 Answers, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 12 May 2009, 11:39 AM
When a RadDock is closed it is hidden on the page, so you should not recreate it on the next postback if it is closed.
This technique is illustrated In the following example:
http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx
0
Adrian
Top achievements
Rank 1
answered on 12 May 2009, 11:46 AM
Ah the all important missing line of code from the other example !! 

Many thanks !!

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