Adding the RadDock dynamically to a selected position in the RadDockZone can be achieved by a client script, which is registered from the server and moves the dock to the desired position. Below you can find a code snippet, demonstrating how to register the suggested JavaScript function. Overall, it gets from a DropDownList the RadDockZone in which the RadDock should be docked and calls the client method dock.
The script, presented above, should be registered in the server-side event handler, used for dynamically creating a RadDock.
For your convenience I have attached a sample project, implementing the suggested solution. Please use it as a reference for incorporating the desired functionality.
Greetings,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now