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

Disabling the Embedded jQuery using Telerik.ScriptManager.EnableEmbeddedjQuery key in web.config doesnt work

4 Answers 237 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lak
Top achievements
Rank 1
Lak asked on 12 Apr 2018, 03:15 AM

We need to disable embedded JQuery used in latest Telerik UI for ASP.NET AJAX 2017.3.913 library since it is using old jQuery version (version 1.11.1) and we have been advised to refer to disabling the embedded jQuery to do it (Ticket ID:1143165).

Unfortunately disabling it through web.config Telerik.ScriptManager.EnableEmbeddedjQuery key doesnt work. The application still loads old jQuery file.

We cannot use following suggestion to disable embedded jQuery since existing application is heavily depend on <asp:ScriptManager> and changing it to <telerik:RadScriptManager> breaks the existing code.

 

Disable the built-in jQuery on a concrete page.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableEmbeddedjQuery="false"><Scripts><asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /><asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryExternal.js" /><asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" /></Scripts></telerik:RadScriptManager>

 

Appreciate if you could help us with this.

Thanks

Lak

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Apr 2018, 09:09 AM
Hello Lak,

You can try the following which works on my side:

Open the web.config and set:

<appSettings>
  <add key="Telerik.ScriptManager.EnableEmbeddedjQuery" value="false" />
...



After that configure the ScriptManager as follows:

<asp:ScriptManager ID="ScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Path="~/jquery-3.3.1.min.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" />
    </Scripts>
</asp:ScriptManager>


Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Lak
Top achievements
Rank 1
answered on 13 Apr 2018, 06:38 AM

Thanks Rumen.

I tried your suggestion but that doesnt work in my project. I testing the solution in a new asp.net web form project. 

It works (disable embedded JQuery) only when I use 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableEmbeddedjQuery="false">

 

Do I need to add anything else in web.config?

Regards

Lak

 

 

0
Lak
Top achievements
Rank 1
answered on 20 Apr 2018, 03:39 AM

@Ruman, Any update? 

Thanks.

0
kalyan
Top achievements
Rank 1
answered on 04 Dec 2019, 05:30 AM

Hello Lak,

Were you able to fix this? I am facing same issue now. Cannot disable embedded jquery.

Tags
General Discussions
Asked by
Lak
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Lak
Top achievements
Rank 1
kalyan
Top achievements
Rank 1
Share this question
or