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

17 posts, 0 answers
  1. Ramon Achten
    Ramon Achten avatar
    10 posts
    Member since:
    Mar 2005

    Posted 19 Jul 2007 Link to this post

    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
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 23 Jul 2007 Link to this post

    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
  3. Ramon Achten
    Ramon Achten avatar
    10 posts
    Member since:
    Mar 2005

    Posted 23 Jul 2007 Link to this post

    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
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 23 Jul 2007 Link to this post

    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
  5. Ramon Achten
    Ramon Achten avatar
    10 posts
    Member since:
    Mar 2005

    Posted 31 Jul 2007 Link to this post

    Hi Valeri,

    Did you manage to make a hotfix for this issue?

    Regards,
    Ramon
  6. Petya
    Admin
    Petya avatar
    869 posts

    Posted 31 Jul 2007 Link to this post

    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
  7. gnomo
    gnomo avatar
    6 posts
    Member since:
    Jul 2007

    Posted 03 Aug 2007 Link to this post

    Hi, I´m having a similar problem, has Telerik released an hotfix to solve it?
  8. Petya
    Admin
    Petya avatar
    869 posts

    Posted 07 Aug 2007 Link to this post

    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
  9. Ramon Achten
    Ramon Achten avatar
    10 posts
    Member since:
    Mar 2005

    Posted 08 Aug 2007 Link to this post

    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
  10. Petya
    Admin
    Petya avatar
    869 posts

    Posted 09 Aug 2007 Link to this post

    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
  11. Ramon Achten
    Ramon Achten avatar
    10 posts
    Member since:
    Mar 2005

    Posted 10 Aug 2007 Link to this post

    Hi Petya,

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

    Regards,
    Ramon
  12. Maria
    Maria avatar
    27 posts
    Member since:
    Feb 2008

    Posted 23 Oct 2008 Link to this post

    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.
  13. Plamen Peshev
    Admin
    Plamen Peshev avatar
    885 posts

    Posted 24 Oct 2008 Link to this post

    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.
  14. Vincent
    Vincent avatar
    24 posts
    Member since:
    Oct 2008

    Posted 30 Oct 2008 Link to this post

    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
  15. Petko
    Admin
    Petko avatar
    45 posts

    Posted 31 Oct 2008 Link to this post

    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.
  16. ykurniawan
    ykurniawan avatar
    1 posts
    Member since:
    Jan 2009

    Posted 22 Sep 2009 Link to this post

    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
  17. Jim
    Jim avatar
    31 posts
    Member since:
    Jun 2009

    Posted 23 Sep 2009 Link to this post

    Try setting RegisterWithScriptManager="false" to the RadDatePicker.
Back to Top