(Really) Destroying a RadDock

3 posts, 0 answers
  1. lchesnais
    lchesnais avatar
    39 posts
    Member since:
    Feb 2007

    Posted 12 Mar 2009 Link to this post

    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. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 13 Mar 2009 Link to this post

    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.
  3. lchesnais
    lchesnais avatar
    39 posts
    Member since:
    Feb 2007

    Posted 13 Mar 2009 Link to this post

    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
Back to Top