I have 2 rad zones with 2 docks in each one.
lets take one of these zones [ which has 2 docks ]
whenever I try to position the lower dock up in the zone it will go back down [ its not that I'm not placing it right ]
Any idea why its happening, and how to fix ?!
9 Answers, 1 is accepted
Probably once you dropped a RadDock an automatic Postback or Ajax call occurs. Keep in mind that if you want to preserve the state your RadDock controls should be wrapped in a RadDockLayout. Also if you create RadDocks dynamically you should create them in PageInit.
Thanks for your reply Obi-Wan Kenobi
Actually I'm not dynamically creating them, I dragged :
1 X RadDockLayout
3 X RadDockZones
6 X RadDocks [ Divided as two in each zone ]
What I really want is to let the user able to chose which dock would be up and which one is in the middle or down.
Any hint plz ?!
Sorry for the late reply.
What I want is something basic like this :
At that demo when you place object 1 down and object 2 up it will stay at that place.
But the one that I have, when I place object 1 [ that I placed it 1st ] on top of object 2.
Any idea why its happening ?!
Thanks a lot for your support, and repeating my apologize for the lateness.
If you drag a RadDock1 and drop it over RadDock2, RadDock1 will be docked before RadDock2. If you want to dock RadDock1 after RadDock2 you should place it between RadDock2 and the RadDockZone's end.
Thanks Obi-Wan Kenobi for the fast reply,
I'm placing it in the right place, but whats happening is the following :
2 X RadDockZone [ RadDockZone1 - RadDockZone2 ]
4 X RadDock [ RadDock1 - RadDock2 - RadDock3 - RadDock4 ]
RadDock 1 and 2 are placed in RadDockZone1
RadDock 3 and 4 are placed in RadDockZone2
I placed them in the designer statring from the docklayout, dockzones, the dock 1, 2, 3 and 4
if I moved RadDock2 from its place at RadDockZone1 to the other zone it will move successfully.
But if I moved it to the top in RadDock1 it will get back to its normal place [ @ the bottom of RadDock1 ]
Please note that I'm not dynamically generating these docks, I'm placing it from the toolbar into the designer.
Your hints & Support are highly appreciated.
Please check out the following code, hope you'll figure out something out of it.
Thanks a lot for your continuous support.
Here are two useful links:
hii i have problem when click on hyperlink or make redirect I lost position raddock I use 086321_SaveLoadState and
public static void LoadDockLayout(object sender, DockLayoutEventArgs e)
HttpCookie dockState = HttpContext.Current.Request.Cookies.Get("DockStatesCookies");
if (dockState != null)
string serializedList = dockState.Value;
if (serializedList != null)
string states = serializedList.Split('|');
for (int i = 0; i < states.Length; i++)
DockState state = DockState.Deserialize(states[i]);
e.Positions[state.UniqueName] = state.DockZoneID;
e.Indices[state.UniqueName] = state.Index;
public static void SaveDockLayoutFirst(RadDockLayout rdl)
HttpCookie dockState = HttpContext.Current.Response.Cookies.Get("DockStatesCookies");
if (dockState == null)
dockState = new HttpCookie("DockStatesCookies");
List<DockState> stateList = rdl.GetRegisteredDocksState();
StringBuilder serializedList = new StringBuilder();
for (int i = 0; i < stateList.Count; i++)
dockState.Expires = DateTime.Today.AddMonths(1);
dockState.Value = serializedList.ToString();
i make this but when I click to LinkButton with redirect lost position DOCK...: