Matt Jones
Top achievements
Rank 1
Matt Jones
asked on 13 Aug 2009, 04:25 PM
Hi,
if I add a <telerik:RadWindow ID="a" runat="server" /> to an user control that is used in a complex page then I get the following error when the page is loaded in a web browser:
"Script control 'a' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl"
Unfortunately the page including this user control is too complex so I cannot easily provide a simple test case. I just thought I'd ask here if you had an idea what could cause this error and how to fix it.
Thanks
if I add a <telerik:RadWindow ID="a" runat="server" /> to an user control that is used in a complex page then I get the following error when the page is loaded in a web browser:
"Script control 'a' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl"
Unfortunately the page including this user control is too complex so I cannot easily provide a simple test case. I just thought I'd ask here if you had an idea what could cause this error and how to fix it.
Thanks
4 Answers, 1 is accepted
0
Hi Matt,
I am not quite sure what may cause the error on your side. I prepared a test project but I was not able to reproduce the problem. Could you please rework the attached sample in order to reproduce the error and send it back? Once I have a better view over your setup and the problem within I will do my best to provide a working solution.
Sincerely yours,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I am not quite sure what may cause the error on your side. I prepared a test project but I was not able to reproduce the problem. Could you please rework the attached sample in order to reproduce the error and send it back? Once I have a better view over your setup and the problem within I will do my best to provide a working solution.
Sincerely yours,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matt Jones
Top achievements
Rank 1
answered on 14 Aug 2009, 02:33 PM
Thanks for the project but I am afraid it's not going to help. My page includes 14 user controls and the result is 235 kB of HTML and about 800 kB of related javascripts. Something in this huge pile of code is interfering with the <telerik:RadWindow> and if the only way how to fix it is to strip line by line from the source, rebuild and test until I isolate the thing that makes RadWindow failing then it will take days or weeks of work.
I was hoping you in Telerik have some easier methods how to fix such things.
I was hoping you in Telerik have some easier methods how to fix such things.
0
Hi Matt,
Unfortunately we don't. Again we tried to reproduce the problem in different scenarios but to no avail. I am afraid that without having a better view over your exact scenario and logic we cannot be of much help. Please try isolating the problem - you could start by removing all controls that are not necessary e.g. they are not using in the sequence of steps needed to reproduce the problem. Once you have a project that can be run locally and reproduces the error, just send it to us in a support ticket and we will check it right away.
Kind regards,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Unfortunately we don't. Again we tried to reproduce the problem in different scenarios but to no avail. I am afraid that without having a better view over your exact scenario and logic we cannot be of much help. Please try isolating the problem - you could start by removing all controls that are not necessary e.g. they are not using in the sequence of steps needed to reproduce the problem. Once you have a project that can be run locally and reproduces the error, just send it to us in a support ticket and we will check it right away.
Kind regards,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matt Jones
Top achievements
Rank 1
answered on 17 Aug 2009, 03:39 PM
Georgi,
I have managed to locate root of the problem. Open up the Default.aspx in the example project you've attached for me and simply add Visible="false" to the uc1:RadWindow, like this:
<uc1:RadWindow ID="RadWindow1" runat="server" Visible="false" />
That's it. It will not crash the way I described in the title of this thread but it will still fail - with javascript error: 'Sys' is undefined. So symptoms are different but the issue is same.
I have fixed my project by changing the Visible="false" to "true" in the aspx page and changing it back to false at runtime. That seems to work correctly.
Anyway, it took me more than three days of debugging so hopefully others can save their time by learning from this experience...
I have managed to locate root of the problem. Open up the Default.aspx in the example project you've attached for me and simply add Visible="false" to the uc1:RadWindow, like this:
<uc1:RadWindow ID="RadWindow1" runat="server" Visible="false" />
That's it. It will not crash the way I described in the title of this thread but it will still fail - with javascript error: 'Sys' is undefined. So symptoms are different but the issue is same.
I have fixed my project by changing the Visible="false" to "true" in the aspx page and changing it back to false at runtime. That seems to work correctly.
Anyway, it took me more than three days of debugging so hopefully others can save their time by learning from this experience...