Dynamic Create Dock without DockZone

2 posts, 0 answers
  1. restutw
    restutw avatar
    4 posts
    Member since:
    Aug 2007

    Posted 16 Oct 2007 Link to this post

    Hi there,
             I have seen the dynamically created docks sample. In the sample, the dock should create in updatepanel first, and then add the dock into dockzone. Can I dynamically create docks without adding into dockzone? But it still can save and load state. I have tried to add dock directly into form or radDockLayout, but I can't see the dock when I add it. I need to refresh the page so that I can see the docks. Can you give me some suggestion or sample. thanks.

                                          restutw
  2. Petya
    Admin
    Petya avatar
    869 posts

    Posted 17 Oct 2007 Link to this post

    Hi restutw,

    You could modify the example to avoid the usage of zones. In this case you will need to make the update panel visible (right now it is hidden because it is placed inside a div with style=display:none) and after you add the docks to the update panel do not move them to the zone but simply undock them on the client which will make them children of the body. I am attaching our Dynamically Created Docks online demo modified to demonstrate this possibility. Please, note that I have also set Top and Left to the docks to make them display in a well-arranged manner.

    Greetings,
    Petya
    the Telerik team

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