Hello Telerik team,
I have a project which uses the Dock controls from RadControls "Prometheus". The idea of the project looks a lot like Windows Live (or your own example, the Portal Page). Users can have multiple pages where they can place different Dockable objects, with usercontrols loaded in the ContentContainer (such as an agenda, a phonebook, etc).
When the user switches from CurrentPage (which will be set by a Linkbutton in an OnClick-event), I connect to our SQL Server database and get the serialized state of the docks of the clicked page. These DockState-objects seem to be ok, because the DockZoneId's are correct. The problem is, when the page is loaded, the Dockable objects aren't placed in the DockZone's from the (correct!) DockState objects, but they seem to 'copy' the places of the Dockable objects of the previous page's Docks.
This problem only occurres when the user makes an (AJAX) PostBack, otherwise, when he hits ctrl + f5, the Dockable objects are loaded in the correct way. Can you tell me how I can fix this problem?
This is the LoadDockLayout-event, where I set the properties of the Dockable objects. The CurrentDockStates property connects to the database in the get-function.
Thank you in advance,
Arne van Noorloos
I have a project which uses the Dock controls from RadControls "Prometheus". The idea of the project looks a lot like Windows Live (or your own example, the Portal Page). Users can have multiple pages where they can place different Dockable objects, with usercontrols loaded in the ContentContainer (such as an agenda, a phonebook, etc).
When the user switches from CurrentPage (which will be set by a Linkbutton in an OnClick-event), I connect to our SQL Server database and get the serialized state of the docks of the clicked page. These DockState-objects seem to be ok, because the DockZoneId's are correct. The problem is, when the page is loaded, the Dockable objects aren't placed in the DockZone's from the (correct!) DockState objects, but they seem to 'copy' the places of the Dockable objects of the previous page's Docks.
This problem only occurres when the user makes an (AJAX) PostBack, otherwise, when he hits ctrl + f5, the Dockable objects are loaded in the correct way. Can you tell me how I can fix this problem?
This is the LoadDockLayout-event, where I set the properties of the Dockable objects. The CurrentDockStates property connects to the database in the get-function.
protected void RadDockLayoutOverAll_LoadDockLayout(object sender, DockLayoutEventArgs e) | |
{ | |
// CurrentDockStates is a List<DockState>, which contains the states of the Dockable objects for the CurrentPage. Those states are correct. | |
foreach (DockState state in CurrentDockStates) | |
{ | |
if (!string.IsNullOrEmpty(state.DockZoneID)) | |
{ | |
e.Positions[state.UniqueName] = state.DockZoneID; | |
e.Indices[state.UniqueName] = state.Index; | |
} | |
} | |
} |
Thank you in advance,
Arne van Noorloos