It is important that you fulfill these requirements when creating the the dynamical RadDocks:
- The docks should be recreated on Page_Init
to ensure that their state is applied correctly;
- When recreating the docks and their content you should use the same IDs and the layout should not be changed, otherwise the ViewState will not be applied correctly. This is valid for the RadDockZones as well if you create them programmatically.
You can also examine the following help articles:
- Adding Controls Inside Dynamically Created Docks
- Dynamically Creating RadDock Controls
There is not a RadDockLayout method for clearing the dock zones in its content. If your scenario includes programmatically created dock zones, you need to handle them manually.
I hope this helps. If the problem persists, please open a support ticket and send a simple, fully runnable sample that isolates your case so that I can examine it and provide a more to the point answer.
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