I have found an issue trying to change the content of a RadDock after the dock has been moved. Specifically, I can change the content with server-side code prior to moving the RadDock around on the page...after I move it, I get the following error:
Sys.InvalidOperationException: Two components with the same id 'RadDock1' can't be added to the application.
Here's the code for a very simple example is below. One RadDock and buttons.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
<telerik:RadDock ID="RadDock1" runat="server" Width="300px">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
</telerik:RadDock>
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
</telerik:RadAjaxPanel>
Clicking the button changes the text of the label inside the RadDock:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
label1.text =
"1"
End Sub
To demonstrate the bug: Load the page, click the button. The text inside the RadDock changes correctly. Now drag the RadDock to somewhere else on the page and click the button again. The JavaScript error listed above occurs.
Is this not correct use of this control? Is there something I'm missing?
Thanks,
david