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

Dynamic Create Dock without DockZone

1 Answer 61 Views
Dock
This is a migrated thread and some comments may be shown as answers.
restutw
Top achievements
Rank 1
restutw asked on 17 Oct 2007, 02:59 AM
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

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 17 Oct 2007, 10:42 AM
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
Tags
Dock
Asked by
restutw
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or