Hi,
I think I am missing something here because I cant get this to work. I have a statically defined DockLayout on my page with a single DockZone. In the Page_Init event, I am dynamically creating further DockZones with Docks. The page will allow the user to move Docks from the dynamically created DockZones to the static DockZone and save the state. When I postback the page via a button, the static DockZone has no Docks in either the Button Click handler or the SaveDockLayout handler. Here is my code - can anyone suggest why please?
Thanks in advance.
Client-side
Server-side
I think I am missing something here because I cant get this to work. I have a statically defined DockLayout on my page with a single DockZone. In the Page_Init event, I am dynamically creating further DockZones with Docks. The page will allow the user to move Docks from the dynamically created DockZones to the static DockZone and save the state. When I postback the page via a button, the static DockZone has no Docks in either the Button Click handler or the SaveDockLayout handler. Here is my code - can anyone suggest why please?
Thanks in advance.
Client-side
<telerik:RadDockLayout ID="MainDockLayout" runat="server" OnSaveDockLayout="MainDockLayout_SaveDockLayout"> |
<span class="panelHeader">Active Rules</span> |
<telerik:RadDockZone runat="server" ID="SelectedRules" Height="200" Width="75%" CssClass="dockZoneFixed"></telerik:RadDockZone> |
<br /> |
</telerik:RadDockLayout> |
Server-side
RadDockZone dockZone = new RadDockZone(); |
dockZone.ID = string.Format("DockZone_{0}", parent.ID); |
dockZone.Orientation = System.Web.UI.WebControls.Orientation.Vertical; |
dockZone.Height = 125; |
dockZone.MinHeight = 125; |
dockZone.CssClass = "dockZone"; |
MainDockLayout.Controls.Add(dockZone); |
RadDock dock = new RadDock(); |
dock.ID = string.Format("Dock_{0}", child.ID); |
dock.DockHandle = DockHandle.None; |
dock.Skin = "Vista"; |
dock.CssClass = "dockClass"; |
dock.OnClientInitialize = "SetDockHandle"; |
dockZone.Controls.Add(dock); |