The RadDock.Collapsed property is responsible to display collapsed or expanded RadDock on the client.
If you set dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.ExpandCollapse; - this means that the RadDock will be created only with Expand/Collapse commands (e.g. without Close and Pin commands).
I tried the following code