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

Destroying docks

1 Answer 59 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Fergus Bown
Top achievements
Rank 1
Fergus Bown asked on 03 Mar 2009, 05:19 PM
I am using dynamically created docks. I am adding charts and all sorts into those docks.
I note  that when a dock is closed it is simply hidden.

Thus on every render all the docks and contents for every dock ever created is rendered *even if they are closed*.

I cannot see how to intervene in the state loading/saving to ensure closed docks' states aren't saved (or rehydrated).

How do I ensure that when a dock is closed it is destroyed utterly?

thanks

1 Answer, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 06 Mar 2009, 02:00 PM
Hello Fergus Bown,

The RadDock could be shown and hidden, it can't be destroyed.
If  you create RadDocks dynamically, on the next postback (after closing a RadDock) you should check for a closed RadDock and if a RadDock is closed you shouldn't recreate it.
The technique above is illustrated in the MyPortal example.

Regards,
Petio Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
Fergus Bown
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Share this question
or