I have a series of dynamically created raddocks, that are dynamically placed in different RadDock zones. If the user presses "Save" I am trying to cycle through each raddockzone and then save information from them in a database. See below.
The problem is if the RadDock is moved from another dockzone, it is not detected and therefor not saved...any thoughts.
Here is how the RadDock is created
Michael
private
void
SaveWorkspacePanels(RadDockZone dockzone,
int
workspaceid,
int
panellocation)
{
try
{
BusinessLayer BL=
new
BusinessLayer();
DemandSolutions_WorkspacePanel WorkspacePanel;
string
source;
string
[] parsed;
string
panelid;
string
paneltype;
foreach
(RadDock dock
in
dockzone.Docks)
{
WorkspacePanel=
new
DemandSolutions_WorkspacePanel();
source=dock.Tag;
parsed=source.Split(
' '
);
panelid=parsed[0];
paneltype=parsed[1];
WorkspacePanel.PanelID=Convert.ToInt32(panelid);
WorkspacePanel.PanelLocation=panellocation;
WorkspacePanel.WorkspaceID=workspaceid;
BL.InsertWorkspacePanel(WorkspacePanel);
}
//End For-Each
}
catch
(Exception ex)
{
DisplayMessage.InnerText=
"Problem with "
+dockzone.ID+
" "
+ex.ToString();
}
}
//End Function
The problem is if the RadDock is moved from another dockzone, it is not detected and therefor not saved...any thoughts.
Here is how the RadDock is created
RadDock dock=
new
RadDock();
dock.DockMode = DockMode.Docked;
dock.ID=
string
.Format(
"RadDock{0}"
, Guid.NewGuid().ToString().Replace(
'-'
,
'a'
));
dock.Tag=panelID+
" "
+controlType;
dock.Title=panelTitle;
dock.Text=panelDescription;
dock.Width=Unit.Percentage(100);
dock.AutoPostBack=
true
;
dock.Commands.Add(
new
DockExpandCollapseCommand());
Michael