I have a .aspx page where I have a RadDockLayout and a RadDockZone registered as this:
I'm adding new Docks to the page via the UpdatePanel and placing the using script as illustrated in this example. Some docks are created with a DockZone and some are placed in these dynamically created DockZones.
Now I want to be able to react to the placed docks from code behind during the AJAX call backs but it seems that the DockZones are "lost" after they have been created. I.e. only the non-dynamic DockZone (rdzMain) is registered in rdlDockLayout.RegisteredZones and when calling rdlDockLayout.GetRegisteredDocksState() all Docks that are docked in dynamically created DockZones have an empty string for DockZoneID. This makes it hard to figure out which Dock belongs to which DockZone, which is important to my application.
DockZones have the same string (unique per DockZone though) set as both ID and UniqueName.
Is something wrong or is this the expected behavior when creating DockZones dynamically?
<telerik:RadDockLayout ID="rdlDockLayout" runat="server" OnLoadDockLayout="rdlDockLayout_LoadDockLayout" |
OnSaveDockLayout="rdlDockLayout_SaveDockLayout"> |
<telerik:RadDockZone ID="rdzMain" UniqueName="rdzMain" runat="server" MinHeight="600px" |
Width="550px" BorderStyle="None"> |
</telerik:RadDockZone> |
<div style="display: none"> |
<%--Hidden UpdatePanel, which is used to receive the new dock controls.--%> |
<%--We will move them with script to the desired initial dock zone.--%> |
<asp:UpdatePanel runat="server" ID="udpPanel" OnLoad="udpPanel_Load"> |
<Triggers> |
<asp:AsyncPostBackTrigger ControlID="cmdNewDockWithZone" EventName="Click" /> |
<asp:AsyncPostBackTrigger ControlID="cmdNewDock" EventName="Click" /> |
</Triggers> |
</asp:UpdatePanel> |
</div> |
</telerik:RadDockLayout> |
I'm adding new Docks to the page via the UpdatePanel and placing the using script as illustrated in this example. Some docks are created with a DockZone and some are placed in these dynamically created DockZones.
Now I want to be able to react to the placed docks from code behind during the AJAX call backs but it seems that the DockZones are "lost" after they have been created. I.e. only the non-dynamic DockZone (rdzMain) is registered in rdlDockLayout.RegisteredZones and when calling rdlDockLayout.GetRegisteredDocksState() all Docks that are docked in dynamically created DockZones have an empty string for DockZoneID. This makes it hard to figure out which Dock belongs to which DockZone, which is important to my application.
DockZones have the same string (unique per DockZone though) set as both ID and UniqueName.
Is something wrong or is this the expected behavior when creating DockZones dynamically?