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

Sys.Extended.UI - Framework 4.0 Error

2 Answers 330 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 11 Oct 2013, 08:16 PM
I've seen some posts in here about this issue but none seem to be answered.

I'm developing an ASP.Net Website using the AjaxControlToolkit - September 2013 release along with the Q2 2013 SP1 release of the Telerik.Web.UI controls.

I have a RadScriptManager on my page:
<telerik:RadScriptManager ID="ScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>

I also have an AjaxToolkit:ModalPopupExtender that, when the application is ran, throws the following Javascript error:
Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object

If I replace my RadScriptManager with an AjaxToolkit:ToolkitScriptManager, it works fine.

I believe this issue is because in the 3.5 and up frameworks for the AjaxControlToolkit, the namespace changed from AjaxControlToolkit to Sys.Extended.UI.

I just need to know how to make my RadScriptManager work with the latest AjaxControlToolkit so I don't get this error.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 16 Oct 2013, 01:19 PM
Hello Brett,

Latest AJAX Control Toolkits could not work with RadScriptManager and there is no available workaround for this. The AJAX Control Toolkit requires that you use ToolkitScriptManager instead in order to work correctly.

Attached you could find a sample page with "ModalPopupExtender" with RadGrid in it that works without any issues. 

Moreover, you could use our RadWindow instead of the ModalPopupExtender, thus will make the use of RadScriptManager possible.


Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Brett
Top achievements
Rank 1
answered on 16 Oct 2013, 01:53 PM
Hi Konstantin,
    It looks like if I just use the Ajax ToolScriptManager control the code will still work. It threw some other javascript errors but I was able to work around those as well.

Thanks!
Brett
Tags
Ajax
Asked by
Brett
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Brett
Top achievements
Rank 1
Share this question
or