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

Unable to use ASP.NET Ajax Library Beta in conjunction with RadControls

8 Answers 451 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Bryan DeBois
Top achievements
Rank 1
Bryan DeBois asked on 02 Feb 2010, 04:21 PM
We would like to utilize some functionality of the latest ASP.NET Ajax Library (specifically, Client Templates), but are running into problems when including RadControls (2009 Q3 release) on the same page.

It seems that the RadScriptManager outputs an earlier version of MicrosoftAjax.js on the page when necessary. This is understandable, as I'm sure many of your controls utilize its functionality. However, when including the latest release of the ASP.NET Ajax Library, there are major errors that occur on the page (certain functions/objects undefined, null references, etc.). My question is: is there a supported way (or even ANY way) to use a later version of the ASP.NET Ajax Library in conjunction with Telerik controls on a single page?

8 Answers, 1 is accepted

Sort by
0
Brad Bell
Top achievements
Rank 1
answered on 04 Feb 2010, 08:10 PM
Same issue here... any workaround?
0
T. Tsonev
Telerik team
answered on 08 Feb 2010, 02:12 PM
Hello,

Using RadControls and RadScriptManager with ASP.NET Ajax Library is indeed possible. You need to reference the MicrosoftAjax.js and MicrosoftAjaxWebForms.js through RadScriptManager:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                             Name="MicrosoftAjax.js" Path="Scripts/MicrosoftAjax.js" />
        <asp:ScriptReference Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                             Name="MicrosoftAjaxWebForms.js" Path="Scripts/MicrosoftAjaxWebForms.js" />
    </Scripts>
</telerik:RadScriptManager>

The version of System.Web.Extensions is 3.5.0.0 if you're using .NET 3.5

I hope this helps.

Regards,
Tsvetomir Tsonev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
nick
Top achievements
Rank 1
answered on 26 Feb 2011, 06:28 PM
Even when I apply your fix, I get the following errors:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SV1; GTB6.4; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Sat, 26 Feb 2011 17:26:21 UTC

Message: Syntax error
Line: 3
Char: 1
Code: 0
URI: http://www.militaryroster.com/include/scripts/MicrosoftAjax.js

Message: Syntax error
Line: 3
Char: 1
Code: 0
URI: http://www.militaryroster.com/include/scripts/MicrosoftAjaxWebForms.js

Message: 'Type' is undefined
Line: 3
Char: 15
Code: 0
URI: http://www.militaryroster.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ContentPlaceHolder1_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2010.2.713.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7302be66-e7a1-4bc1-8280-71f03d66eba0%3a16e4e7cd%3aed16cbdc%3addbfcb67%3af7645509%3bAjaxControlToolkit%2c+Version%3d3.5.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a1547e793-5b7e-48fe-8490-03a375b13a33%3a923aa3cc%3a782b16ab%3af48dface%3a853c2e0b%3af9ae838a%3ad754780e%3a1e088fb%3a52c703eb%3a28a7831e

Message: 'Sys' is undefined
Line: 103
Char: 1
Code: 0
URI: http://www.militaryroster.com/members/mildetails.aspx?504944=MzUzODM3MzE%3d

Message: 'Sys' is undefined
Line: 19
Char: 190
Code: 0
URI: http://www.militaryroster.com/WebResource.axd?d=j9vXSHGegNnABuphReOL-auqxjPDiREszbr8r8epYBF9a2H19TDyMMNJVkfyJbCgvAv9HugsoSXwtbtZcpaFQHWn6r6Ww8k9gARW6IgNDpSlv1lk1htsvDiGHxdqgt34TB5TGw2&t=634158982004110000

0
Helen
Telerik team
answered on 28 Feb 2011, 11:07 AM
Hi Nick,

What version of Telerik.Web.UI and ASP.NET Ajax Library are you using?

Regards,
Helen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
alien9882
Top achievements
Rank 1
answered on 28 Mar 2011, 04:38 PM
Hi,

I got exact error message as Nick. I am running on .Net 3.5, Telerik 2010 Q3 and April 2010 Release.

Please advise.

Thanks,
Charlie
0
nguyen
Top achievements
Rank 1
answered on 04 Jul 2011, 08:59 AM
i got error message:
Message: 'Sys$Enum$parse' is undefined 
 I am running on .Net 3.5, Telerik 2010 Q1 and April 2010 Release as Charlie.
please help,
thanks
Hung
0
nguyen
Top achievements
Rank 1
answered on 07 Jul 2011, 08:50 AM

i've reference the MicrosoftAjax.js and MicrosoftAjaxWebForms.js through RadScriptManager in Default.master :

<form id="form1" runat="server">

<
telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                             Name="MicrosoftAjax.js" Path="Scripts/MicrosoftAjax.js" />
        <asp:ScriptReference Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                             Name="MicrosoftAjaxWebForms.js" Path="Scripts/MicrosoftAjaxWebForms.js" />
    </Scripts>
</telerik:RadScriptManager>
</form>
But project still got error message:
Sys$Enum$parse is not defined

0
Simon
Telerik team
answered on 13 Jul 2011, 03:30 PM
Hi Nguyen,

The script references in the code snippets are for System.Web.Extensions v1.0.61025.0 and since you use .NET 3.5. you should use the 3.5 versions of the scripts.

From Tsvetomir Tsonev's post on 08-Feb-2010:
"The version of System.Web.Extensions is 3.5.0.0 if you're using .NET 3.5"

Regards,
Simon
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ScriptManager and StyleSheetManager
Asked by
Bryan DeBois
Top achievements
Rank 1
Answers by
Brad Bell
Top achievements
Rank 1
T. Tsonev
Telerik team
nick
Top achievements
Rank 1
Helen
Telerik team
alien9882
Top achievements
Rank 1
nguyen
Top achievements
Rank 1
Simon
Telerik team
Share this question
or