The page goes through its whole page lifecycle even when an AJAX request is initiated so the events SaveDockLayout
of RadDockLayout are fired in this case as well. Most probably the actual cause for your problem is the previously added docks not being recreated when you start a new AJAX request. This should be done on Page_Init
as described in step 5.2 in the previously linked help article
and it is implemented in the My Portal demo:
sender, EventArgs e)
//Recreate the docks in order to ensure their proper operation
i = 0; i < CurrentDockStates.Count; i++)
RadDock dock = CreateRadDockFromState(CurrentDockStates[i]);
//We will just add the RadDock control to the RadDockLayout.
// You could use any other control for that purpose, just ensure
// that it is inside the RadDockLayout control.
// The RadDockLayout control will automatically move the RadDock
// controls to their corresponding zone in the LoadDockLayout
// event (see below).
//We want to save the dock state every time a dock is moved.
//Load the selected widget
Please ensure that you have included this step in your actual project. If you continue experiencing difficulties, I would suggest opening a support ticket and isolating the problem in a simple, fully runnable page
so that I can inspect it locally and provide a concrete solution.
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