This is a migrated thread and some comments may be shown as answers.

Script control '...' is not a registered script control.

16 Answers 1252 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ramon Achten
Top achievements
Rank 1
Ramon Achten asked on 19 Jul 2007, 02:47 PM
My ASPX looks like this:

<!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

16 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 23 Jul 2007, 12:17 PM
Hi Ramon,

This exception is caused by a problem in RadDock - I will try to explain the problem in details:
- The ASP:UpdatePanel control has one significant limitation - it cannot change its parent, e.g. once you add a UpdatePanel to the Controls collection of another control, you cannot remove and add it to another (which appears to be the way RadDock should work).
- To avoid this limitation, RadDock controls do not change their parents when the user changes their positions on the client - they are just rendered by their new dock zones, preventing the original parent or dock zone from rendering them. For example if Dock3 on your page is docked in the left zone, it will remain in the right zone's Controls collection, but it will be rendered by the left zone.
- If a control has its Visible property set to true, the Framework does not rise its PreRender event and does not call its Render method.
- The problem is that RadDock has significant amount of code in its OnPreRender method, which is not called when the control is placed in an invisible parent. In normal circumstances this should not be a problem, but the RadDock is rendered by the dock zone which is now its "virtual" parent, which causes the exception. I was able to workaround the server-side exception, but the client-side scripts depend on the presence of some HTML elements which are created in OnPreRender and now throw errors.

To summarize - RadDock has a problem which prevents it from working in your scenario. I will log it in our bug-tracking database and I will try to fix it for the next update of the control.

Regards,
Valeri Hristov (Senior Developer, MCSD)
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ramon Achten
Top achievements
Rank 1
answered on 23 Jul 2007, 12:28 PM
Hi Valeri,

Thanks for explaining that to me.

So, there's no workaround for this bug at the moment? :-(
Can you tell me when the next update of the control is due?

Regards,
Ramon
0
Valeri Hristov
Telerik team
answered on 23 Jul 2007, 12:33 PM
Hi Ramon,

I will try to provide an unofficial fix by the end of the week. The official hotfix has no specific schedule, but most probably will be released near the end of the month.

Regards,
Valeri Hristov (Senior Developer, MCSD)
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ramon Achten
Top achievements
Rank 1
answered on 31 Jul 2007, 08:04 AM
Hi Valeri,

Did you manage to make a hotfix for this issue?

Regards,
Ramon
0
Petya
Telerik team
answered on 31 Jul 2007, 03:28 PM
Hi Ramon Achten,

Currently, we are testing the last changes we made on the control so hopefully we will be able to send you a hotfix tomorrow.

Sincerely yours,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
gnomo
Top achievements
Rank 1
answered on 03 Aug 2007, 09:05 AM
Hi, I´m having a similar problem, has Telerik released an hotfix to solve it?
0
Petya
Telerik team
answered on 07 Aug 2007, 03:32 PM
Hi gnomo,

For the problem described in this thread, please test with the attached trial hotfix. If you need a developer version, please open a support ticket.

Best wishes,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ramon Achten
Top achievements
Rank 1
answered on 08 Aug 2007, 06:46 AM
Hi Petya/Valeri,

I've just tested the attached trial hotfix but with my example I get the exact same error? :-(((

Are you sure the hotfix solves my issue?

Regards,
Ramon
0
Petya
Telerik team
answered on 09 Aug 2007, 03:43 PM
Hi Ramon Achten,

We worked on this issue just yesterday, so please test with the very latest hotfix that I have attached. I am also attaching a simple test project that demonstrates that everything works fine. If you encounter problems, let us know right away.

All the best,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ramon Achten
Top achievements
Rank 1
answered on 10 Aug 2007, 07:03 AM
Hi Petya,

Now it works! Great thanks.
I've opened a support ticket to get a developer version.

Regards,
Ramon
0
Maria
Top achievements
Rank 1
answered on 23 Oct 2008, 03:17 PM
Hello guys,

I have the same problem 

Script control 'dateInput' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

Any hope that this will be fixed?

Thank you.
0
Missing User
answered on 24 Oct 2008, 07:28 AM
Hello Maria,


Unfortunately the provided information is not enough for us to determine what the reason for the problem might be and we are unable to reproduce it.  Please open a support ticket and send me a small sample application that reproduces the problem and I will check it right away.

Greetings,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Vincent
Top achievements
Rank 1
answered on 30 Oct 2008, 05:49 PM
Hi,

I am using the DLL with this vresion: 2008.1.515.20.

And I am getting the same exception after dragging the webpart to another zone.

Thanks.

Vincent
0
Petko
Telerik team
answered on 31 Oct 2008, 11:59 AM
Hello Vincent,

Please, open a support ticket and send us your running project. Once we are able to reproduce the problem on our side we will do our best to help you.



Greetings,
Petko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
ykurniawan
Top achievements
Rank 1
answered on 23 Sep 2009, 03:06 AM
I've the same problem as maria, when i put a RadDatePicker in a RadXmlHttpPanel.. Does anybody have solved this problem since RadDatePicker has server behavior 'dateInput'.. Thanks
0
Jim
Top achievements
Rank 1
answered on 23 Sep 2009, 09:57 AM
Try setting RegisterWithScriptManager="false" to the RadDatePicker.
Tags
Dock
Asked by
Ramon Achten
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Ramon Achten
Top achievements
Rank 1
Petya
Telerik team
gnomo
Top achievements
Rank 1
Maria
Top achievements
Rank 1
Missing User
Vincent
Top achievements
Rank 1
Petko
Telerik team
ykurniawan
Top achievements
Rank 1
Jim
Top achievements
Rank 1
Share this question
or