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

(Really) Destroying a RadDock

2 Answers 61 Views
Dock
This is a migrated thread and some comments may be shown as answers.
lchesnais
Top achievements
Rank 1
lchesnais asked on 12 Mar 2009, 11:42 AM
Hello Community !

I'd like to know how to destroy a RadDock when the user click the Close button.
The default behavior is to hide the RadDock. It is convenient when you need to reopen this RadDock for some reasons.
But in my case, when the user closes the RadDock I'd like to destroy the component and all the components that were inside the Dock.

BR, Laurent

2 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 13 Mar 2009, 04:10 PM
Hello lchesnais,

By design a RadDock can only be hidden on the client. If you want to remove it from the page you should make a postback.

All the best,
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.
0
lchesnais
Top achievements
Rank 1
answered on 13 Mar 2009, 06:01 PM
Hello Petio,

Thank you for your answer.
SInce Postback is not an option for me, I'll try to manage it using JS code.
I'm currently looking at Sys$WebForms$PageRequestManager$_destroyTree.
After all, this is what is called internaly when a RadDock removed from an UpdatePanel if required by an asynchronous postback.

BR, Laurent
Tags
Dock
Asked by
lchesnais
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
lchesnais
Top achievements
Rank 1
Share this question
or