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

Making Telerik and AJAX Control Toolkit play nicely together

12 Answers 535 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jesse Lawler
Top achievements
Rank 1
Jesse Lawler asked on 21 May 2010, 09:24 AM
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?

12 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 May 2010, 10:19 AM
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.
0
Jesse Lawler
Top achievements
Rank 1
answered on 29 May 2010, 09:17 PM
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
0
Sebastian
Telerik team
answered on 31 May 2010, 12:16 PM
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.
0
Mike
Top achievements
Rank 1
answered on 02 Jun 2010, 06:51 AM
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

0
Sebastian
Telerik team
answered on 02 Jun 2010, 01:00 PM
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.
0
gordon
Top achievements
Rank 1
answered on 08 Jun 2010, 01:08 PM
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
0
Alex Ruggeri
Top achievements
Rank 1
answered on 23 Jun 2010, 10:44 AM
Hi Guys,

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

Cheers

Pete
0
T. Tsonev
Telerik team
answered on 25 Jun 2010, 02:04 PM
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
0
Paresh
Top achievements
Rank 1
answered on 19 May 2011, 10:53 AM
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.

 

 

 




0
Nguyen
Top achievements
Rank 1
answered on 24 Oct 2013, 02:12 AM
Thank your post Paresh!
It's nice!
0
Ogunseye
Top achievements
Rank 1
answered on 27 Dec 2013, 10:14 AM
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
0
Shinu
Top achievements
Rank 2
answered on 30 Dec 2013, 04:59 AM
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.
Tags
General Discussions
Asked by
Jesse Lawler
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jesse Lawler
Top achievements
Rank 1
Sebastian
Telerik team
Mike
Top achievements
Rank 1
gordon
Top achievements
Rank 1
Alex Ruggeri
Top achievements
Rank 1
T. Tsonev
Telerik team
Paresh
Top achievements
Rank 1
Nguyen
Top achievements
Rank 1
Ogunseye
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or