My ASPX looks like this:
The codebehind:
Then I drag "Control3" to the left column and drop it into the "LeftZoneRadDockZone" zone. When I click on the "HideButton" afterwards, an System.ArgumentException is raised: "Script control 'Control3RadDock' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl".
Please advice on this.
Kind Regards,
Ramon
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <asp:ScriptManager runat="server" ID="ScriptManager"> |
| </asp:ScriptManager> |
| <telerik:RadDockLayout runat="server" ID="MainRadDockLayout"> |
| <table width="100%" border="1"> |
| <tr> |
| <td style="height: 500px; vertical-align: top"> |
| ... left column ... |
| <telerik:RadDockZone runat="server" ID="LeftZoneRadDockZone"> |
| <telerik:RadDock runat="server" ID="Control1RadDock" DockMode="Docked" AutoPostBack="true" |
| CommandsAutoPostBack="true"> |
| <TitlebarTemplate> |
| <div> |
| Control 1</div> |
| </TitlebarTemplate> |
| <ContentTemplate> |
| ... some control ... |
| </ContentTemplate> |
| </telerik:RadDock> |
| <telerik:RadDock runat="server" ID="Control2RadDock" DockMode="Docked" AutoPostBack="true" |
| CommandsAutoPostBack="true"> |
| <TitlebarTemplate> |
| <div> |
| Control 2</div> |
| </TitlebarTemplate> |
| <ContentTemplate> |
| ... some control ... |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockZone> |
| </td> |
| <td style="height: 500px; vertical-align: top"> |
| ... center column ... |
| </td> |
| <td style="height: 500px; vertical-align: top" runat="server" id="RightColumnTD"> |
| ... right column ... |
| <telerik:RadDockZone runat="server" ID="RightZoneRadDockZone"> |
| <telerik:RadDock runat="server" ID="Control3RadDock" DockMode="Docked" AutoPostBack="true" |
| CommandsAutoPostBack="true"> |
| <TitlebarTemplate> |
| <div> |
| Control 3</div> |
| </TitlebarTemplate> |
| <ContentTemplate> |
| ... some control ... |
| </ContentTemplate> |
| </telerik:RadDock> |
| <telerik:RadDock runat="server" ID="Control4RadDock" DockMode="Docked" AutoPostBack="true" |
| CommandsAutoPostBack="true"> |
| <TitlebarTemplate> |
| <div> |
| Control 4</div> |
| </TitlebarTemplate> |
| <ContentTemplate> |
| ... some control ... |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockZone> |
| </td> |
| </tr> |
| </table> |
| </telerik:RadDockLayout> |
| <div style="display: none"> |
| <asp:UpdatePanel runat="server" ID="MainUpdatePanel"> |
| <Triggers> |
| <asp:AsyncPostBackTrigger ControlID="Control1RadDock" EventName="DockPositionChanged" /> |
| <asp:AsyncPostBackTrigger ControlID="Control1RadDock" EventName="Command" /> |
| <asp:AsyncPostBackTrigger ControlID="Control2RadDock" EventName="DockPositionChanged" /> |
| <asp:AsyncPostBackTrigger ControlID="Control2RadDock" EventName="Command" /> |
| <asp:AsyncPostBackTrigger ControlID="Control3RadDock" EventName="DockPositionChanged" /> |
| <asp:AsyncPostBackTrigger ControlID="Control3RadDock" EventName="Command" /> |
| <asp:AsyncPostBackTrigger ControlID="Control4RadDock" EventName="DockPositionChanged" /> |
| <asp:AsyncPostBackTrigger ControlID="Control4RadDock" EventName="Command" /> |
| </Triggers> |
| </asp:UpdatePanel> |
| </div> |
| <asp:Button runat="server" ID="HideButton" Text="Hide right column" OnClick="HideButton_Click" /> |
| </div> |
| </form> |
| </body> |
| </html> |
The codebehind:
| using System; |
| using System.Data; |
| using System.Configuration; |
| using System.Collections; |
| using System.Web; |
| using System.Web.Security; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using System.Web.UI.WebControls.WebParts; |
| using System.Web.UI.HtmlControls; |
| public partial class Portal : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| // |
| } |
| protected void HideButton_Click(object sender, EventArgs e) |
| { |
| RightColumnTD.Visible = false; |
| } |
| } |
Then I drag "Control3" to the left column and drop it into the "LeftZoneRadDockZone" zone. When I click on the "HideButton" afterwards, an System.ArgumentException is raised: "Script control 'Control3RadDock' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl".
Please advice on this.
Kind Regards,
Ramon