returns all RadDock objects registered with this RadDockLayout control. From what I saw in your code, you do not have any docks in the first place. You just create zones and you add them to a panel - no docks and layout involved here. I am attaching your page modified so that some docks are dynamically created and added to the zones, the zones are then added to the layout and in this scenario rdl.RegisteredDocks.Count will return the count of the docks. You could modify my example to fit your requirements - it is only important to remember that if you want to use rdl.RegisteredDocks.Count then the docks must be INSIDE the layout regardless whether in a zone or not. If you have additional questions, please contact us again.
the Telerik team