I have a set of dock zones with docks in them. Some docks are added via postbacks as per you examples.
When
1. a Dock as been undocked by a user and dragged elsewhere, and
2. a postback occurs (even if no event handler is called)
The undocked dock is cloned. If the user drags it it reveals another copy of it which was beneath it.
If then
3. a second postback occurs (even if no event handler is called)
Then I get:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: {"Top":309,"Left":302,"DockZoneID":"","Collapsed":false,"Pinned":false,"Resizable":true,"Closed":false,"Width":"47%","Height":null,"ExpandedHeight":0,"Index":0}.
I think I've narrowed it down to the Page_Init code as per your sample
When
1. a Dock as been undocked by a user and dragged elsewhere, and
2. a postback occurs (even if no event handler is called)
The undocked dock is cloned. If the user drags it it reveals another copy of it which was beneath it.
If then
3. a second postback occurs (even if no event handler is called)
Then I get:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: {"Top":309,"Left":302,"DockZoneID":"","Collapsed":false,"Pinned":false,"Resizable":true,"Closed":false,"Width":"47%","Height":null,"ExpandedHeight":0,"Index":0}.
I think I've narrowed it down to the Page_Init code as per your sample
List<DockState> currentDockStates = CurrentDockStates;
for (int i = 0; i < currentDockStates.Count; i++)
{
RadDock dock = new RadDock();
dock.ID =
string.Format("ChartDock{0}", i);
dock.ApplyState(currentDockStates[i]);
RadDockLayout1.Controls.Add(dock);
LoadWidget(dock);
}
but am at a loss as to how to fix it.
Do you have any suggestions?
thanks