RadControls for ASP.NET AJAX
The LoadDockLayout event occurs when it is appropriate for the application to load the state of all its RadDock controls when that state has been previously saved by a SaveDockLayout event handler.
The LoadDockLayout event handler receives two arguments:
The RadDockLayout control that is responsible for managing the layout of RadDockZone and RadDock controls. This argument is of type object, but can be cast to the RadDockLayout type.
A DockLayoutEventArgs object. This object provides access to layout information in two properties:
Indices is a Dictionary that stores the Index property of all RadDock controls, accessed through the UniqueName property of the RadDock control.
Positions is a Dictionary that stores the DockZoneID property of all RadDock controls, accessed through the UniqueName property of the RadDock control.
If the application has not explicitly set the UniqueName property of the RadDock controls, the Indices and Positions properties of the DockLayoutEventArgs object are indexed by the server-side ID of the RadDock controls.
The LoadDockLayout should set the Indices and Positions properties of the DockLayoutEventArgs argument from the values that were saved by the SaveDockLayout event handler:
If other properties than the position and dock zone can change for the RadDock controls, the application should call the ApplyState method of the RadDock controls, passing in the saved DockState object. This can be done either in the LoadDockLayout event handler, or in the Page_Init event handler.