The code that you have provided appears to be correct, except the operator in the first if
statement. Please change it as shown below:
Also, you can set small value for the MinHeight
property of the RadDockZone, in which the dock controls are placed, so that its height is defined by the contained RadDocks. This way your page's layout will be changed when the RadDocks are collapsed and expanded, if it depends on the height of the RadDockZone control.
Please provide additional information on your problem, if there are still details left unclear.
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