Making Telerik and AJAX Control Toolkit play nicely together

13 posts, 0 answers
  1. Jesse Lawler
    Jesse Lawler avatar
    46 posts
    Member since:
    Apr 2010

    Posted 21 May 2010 Link to this post

    So I'm trying to include some Telerik controls on a page which already is using a lot of controls from the AJAX Control Toolkit.  Telerik's controls require a RadScriptManager.  I was previously using the ToolkitScriptManager for my ScriptManager object on the page... When I switch to RadScriptManager, I get the following error:

    AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

    ...And of course I can't use more than one ScriptManager on the page.  How do I reconcile this?
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 21 May 2010 Link to this post

    Hi Jesse,

    Are you using the ASP.NET 4.0 version of the Telerik.Web.UI assembly? Assuming that you are using RadControls Q1 2010, the DLL version should look like this:

    2010.1.309.40   (not 20 or 35)

    If needed, you can use RadScriptManager to register a Javascript file manually by adding asp:ScriptReferences manually as nested properties.

    http://www.telerik.com/help/aspnet-ajax/radscriptmanager.html

    Kind regards,
    Dimo
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jesse Lawler
    Jesse Lawler avatar
    46 posts
    Member since:
    Apr 2010

    Posted 29 May 2010 Link to this post

    My web host is not yet supporting ASP.NET 4.0 framework, so I'm stuck on ASP.NET 3.5 for the time being.

    If I understand correctly what you're suggesting, you're saying to use a RadScriptManager object on my page (in this case, my Master Page) and then manually including asp:ScriptReferences to the files required by the AJAX Control Toolkit.  Is this correct?

    Jesse
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 31 May 2010 Link to this post

    Hello Jesse,

    The exception you receive indicates that you are using the .NET 4 version of the AJAX toolkit with our controls. There is a separate version of the AJAX toolkit for .NET 3.5 which you should install in case you build your applications under .NET 3.5. It should work without issues with RadScriptManager and you do not need to register script references manually using its ScriptReferences collection.

    In case you are interested in the compatibility of our controls with the NET 4 toolkit, please refer to this forum thread.

    Kind regards,
    Sebastian
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Mike
    Mike avatar
    4 posts
    Member since:
    Aug 2007

    Posted 02 Jun 2010 Link to this post

    Hello,

    I am also having the same issue. I have tired with:
    • ToolkitScriptManager, but then the Telerik controls don't work.
    • RadScriptManager, then AjaxControlToolkit controls don't work
    • asp:ScriptManager - Neither works

    I am using Telerik.Web.UI, Version=2010.1.519.35 for .NET 3.5 and  AjaxControlToolkit, Version 3.5.40412.0

    Any help would be appreciated,

    Thanks

  7. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Jun 2010 Link to this post

    Hello Mike,

    What exception do you get with the .NET 35 version of RadControls for ASP.NET AJAX and the NET 35 AJAX toolkit? The error discussed in the beginning of this thread is concerning dependency from the .NET 4 AJAX toolkit scripts and should not be relevant for the .NET 35 version.

    Regards,
    Sebastian
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. gordon
    gordon avatar
    1 posts
    Member since:
    Jun 2010

    Posted 08 Jun 2010 Link to this post

    Go to your master page(or main page if you do not have one) and delete the 'radscriptmanager' from that page. Then drag a new toolkitscriptmanager from the ajax controls in the toolbox (that you created during installation). Things seem to wroking fine here with the latest build of toolkit 3.5
  9. Alex Ruggeri
    Alex Ruggeri avatar
    4 posts
    Member since:
    Jan 2010

    Posted 23 Jun 2010 Link to this post

    Hi Guys,

    Do telerik plan any official fixes / worksarounds for this problem in the next build?

    Cheers

    Pete
  10. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 25 Jun 2010 Link to this post

    Hi,

    I'm happy to announce that the next internal build (available later today) will be fully compatible with the ACT for .NET 4.0 sites. Read this forum post for more more details.

    We don't have a solution for .NET 3.5 sites apart from loading the scripts externally. This is also described in the forum post.

    I hope this helps.

    Sincerely yours,
    Tsvetomir Tsonev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. Paresh
    Paresh avatar
    1 posts
    Member since:
    May 2011

    Posted 19 May 2011 Link to this post

    First of first check your Telerik version, it should be equal or greater  (2010.1.309.35)
    If your version is less then update your telerik and install your system. then open your visual studio project , when you open then telerik automatically ask to you for update your vesrion in your existing Project.

    then remove radscriptmanager from Master pages. and only add 

    <

     

     

    asp:ToolkitScriptManager ID="ToolkitScriptManagerMaster" runat="server">

     

     

    </asp:ToolkitScriptManager>

    its working very smoothly.

     

     

     




  12. Nguyen
    Nguyen avatar
    1 posts
    Member since:
    Jul 2011

    Posted 23 Oct 2013 Link to this post

    Thank your post Paresh!
    It's nice!
  13. Ogunseye
    Ogunseye avatar
    2 posts
    Member since:
    Nov 2013

    Posted 27 Dec 2013 Link to this post

    I have an Update Panel on  my master page, and an ajax toolkit scriptmanager, i also have an update panel containing a label which indicates the status of any action performed..... On one of my subpages i have a radgrid which has a button that should trigger an update in the masterpage update panel hence update the status... this works fine before publishing, but fails after been published
  14. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Dec 2013 Link to this post

    Hi Ogunseye,

    Please have a look into the following sample code which works fine at my end.

    Master Page ASPX:
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Label ID="Label1" runat="server">
            </asp:Label>
        </ContentTemplate>
    </asp:UpdatePanel>

    Content Page ASPX:
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateEditColumn="true">
        <MasterTableView>
            <Columns>
                <telerik:GridTemplateColumn>
                    <EditItemTemplate>
                        <telerik:RadButton ID="RadButton1" runat="server" Text="Set Status" OnClick="RadButton1_Click">
                        </telerik:RadButton>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

    Content Page C#:
    protected void RadButton1_Click(object sender, EventArgs e)
    {
        Label lbl = (Label)this.Master.FindControl("UpdatePanel1").FindControl("Label1");
        lbl.Text = "Update Panel Label Fired";
    }

    Thanks,
    Shinu.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017