Visibility of RadDock objects

3 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 23 Jun 2008 Link to this post


    What is the best way to control the visibility of a RadDock object ?

    • RadDock1.Closed = True/False ?
    • RadDock1.Visible = True/False ?

    I need to display and hide certain Docks at various times so which is the best way.

    I have tried both methods so far but have problems persisting thier state.

    My aspx ..

                        <telerik:RadDockLayout runat="server" ID="darrdlPostIts" EnableViewState="true" StoreLayoutInViewState="true">  
                            <telerik:RadDock  ID="darrdPostIt00" Title="&nbsp;" Width="190px" Top="200px" Left="550px" DefaultCommands="All" Pinned="true" DockMode="Floating" runat="server" EnableEmbeddedSkins="false" Skin="PostIt" EnableViewState="true" EnableAjaxSkinRendering="true">  
                            <telerik:RadDock  ID="darrdPostIt01" Title="&nbsp;" Width="190px" Top="200px" Left="550px" DefaultCommands="All" Pinned="true" DockMode="Floating" runat="server" EnableEmbeddedSkins="false" Skin="PostIt" EnableViewState="true" EnableAjaxSkinRendering="true">  
                            <telerik:RadDock  ID="darrdPostIt02" Title="&nbsp;" Width="190px" Top="200px" Left="550px" DefaultCommands="All" Pinned="true" DockMode="Floating" runat="server" EnableEmbeddedSkins="false" Skin="PostIt" EnableViewState="true" EnableAjaxSkinRendering="true">  
                            <telerik:RadDock  ID="darrdPostIt03" Title="&nbsp;" Width="190px" Top="200px" Left="550px" DefaultCommands="All" Pinned="true" DockMode="Floating" runat="server" EnableEmbeddedSkins="false" Skin="PostIt" EnableViewState="true" EnableAjaxSkinRendering="true">  
                            <telerik:RadDock  ID="darrdPostIt04" Title="&nbsp;" Width="190px" Top="200px" Left="550px" DefaultCommands="All" Pinned="true" DockMode="Floating" runat="server" EnableEmbeddedSkins="false" Skin="PostIt" EnableViewState="true" EnableAjaxSkinRendering="true">  

    Kind Regards

  2. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 24 Jun 2008 Link to this post

    Hi David,

    I would like to think that setting the visibility to false should be sufficient, but I'm sure that if you explicitly call some databinding methods on the dock they still get executed, adding some overhead to the application.

    Not sure how it works if it's set to close.

    Personally I find it easiest to manage state by using autopostback on all commands and then writing the state of each dock in a cookie.



  3. Petio Petkov
    Petio Petkov avatar
    825 posts

    Posted 24 Jun 2008 Link to this post


    You should use the RadDock.Closed property. All RadDocks are enclosed with a RadDockLayout so everything related to the state should be OK. 


    Petio Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top