RadScriptManager compatibility with an Ajax Control Toolkit control

6 posts, 0 answers
  1. Paul Robertson
    Paul Robertson avatar
    78 posts
    Member since:
    May 2010

    Posted 29 Mar 2012 Link to this post

    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

     

  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 03 Apr 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul Robertson
    Paul Robertson avatar
    78 posts
    Member since:
    May 2010

    Posted 03 Apr 2012 Link to this post

    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

  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 06 Apr 2012 Link to this post

    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.
  6. Paul Robertson
    Paul Robertson avatar
    78 posts
    Member since:
    May 2010

    Posted 06 Apr 2012 Link to this post

    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

     
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 10 Apr 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017