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

RadScriptManager compatibility with an Ajax Control Toolkit control

5 Answers 152 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Paul Robertson
Top achievements
Rank 1
Paul Robertson asked on 29 Mar 2012, 06:34 PM

Hello

I am trying to get RadScriptManager to work on a page in conjunction with controls from the Ajax Control Toolkit. The website runs under .NET 3.5, and I have a version of the ACT DLL that is built on a .NET 3.5 reference. 

Specifically, I have Telerik.Web.UI v2011.3.1115.35, with an AnimationExtender from ACT v3.5.40412.2.  I have all the DLLs correctly referenced, and no errors are reported, but the AnimationExtender does not appear to be working - it is not responsive to any mouse events. As I understand the issue, I need the RadScriptManager from Telerik.Web.UI to substitute for the ToolkitScriptManager from ACT. On that basis, I found the forum posting shown here:  

http://www.telerik.com/community/forums/aspnet-ajax/scriptmanager-and-stylesheetmanager/fix-radscriptmanager-compatibility-issues-with-ajax-control-toolkit.aspx

This post looks as if it might go some way to addressing my objective. However, I need to carry out the script reference customization programmatically. Hence, I managed to come up with the following code to run on Page_Load, where radsm is the declared RadScriptManager control ...

radsm.EnableScriptCombine = False
radsm.Scripts.Add(New ScriptReference( _
   "MicrosoftAjax.js", _
   "System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"))
radsm.Scripts.Add(New ScriptReference( _
   "MicrosoftAjaxWebForms.js", _
   "System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"))

The problem is this code does not seem to solve my issue. Where could I be going wrong? Is this combination of libraries and controls even possible? Can the RadScriptManager be manipulated in this way programmatically?

If you could provide me with some pointers of the right direction to work in, that would be really useful.

Thanks very much

 

5 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 03 Apr 2012, 07:59 AM
Hi Paul,

Unfortunately it is not possible to use the RadScriptManager with the toolkit 3.5 version. One needs to use the ToolkitScriptManager instead.

Regards,
Genady Sergeev
the Telerik team
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 their blog feed now.
0
Paul Robertson
Top achievements
Rank 1
answered on 03 Apr 2012, 08:07 PM

Hello

OK thanks for that info. Is there a combination of Telerik.Web.UI and AjaxControlToolkit both based around .NET 4.0 that might be more cooperative?

Regards

0
Genady Sergeev
Telerik team
answered on 06 Apr 2012, 12:53 PM
Hello Pual,

RadScriptManager for .NET 40 should be working fine with the toolkit. Could you give it a try and let us know how it is going.

Regards,
Genady Sergeev
the Telerik team
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 their blog feed now.
0
Paul Robertson
Top achievements
Rank 1
answered on 06 Apr 2012, 06:17 PM
Hello again

Would I still need to programmatically add comparable ScriptReference customizations such as I was previously proposing above as a solution in .NET 3.5, or should the RadScriptManager emulate the ToolkitScriptManager 'out of the box' - or is this what you were thinking might need to be tested?

Regards

 
0
Genady Sergeev
Telerik team
answered on 10 Apr 2012, 08:52 AM
Hello Paul,

No, you don't need to write a single line of code/markup. RadScriptManager automatically mimics the ToolkitScriptManager should the runtime is .NET 40.

All the best,
Genady Sergeev
the Telerik team
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 their blog feed now.
Tags
ScriptManager and StyleSheetManager
Asked by
Paul Robertson
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Paul Robertson
Top achievements
Rank 1
Share this question
or