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

5 posts, 0 answers
  1. Lak
    Lak avatar
    6 posts
    Member since:
    Dec 2016

    Posted 11 Apr 2018 Link to this post

    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

  2. Rumen
    Admin
    Rumen avatar
    14098 posts

    Posted 12 Apr 2018 Link to this post

    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.
  3. Lak
    Lak avatar
    6 posts
    Member since:
    Dec 2016

    Posted 13 Apr 2018 in reply to Rumen Link to this post

    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

     

     

  4. Lak
    Lak avatar
    6 posts
    Member since:
    Dec 2016

    Posted 19 Apr 2018 in reply to Lak Link to this post

    @Ruman, Any update? 

    Thanks.

  5. kalyan
    kalyan avatar
    2 posts
    Member since:
    Sep 2019

    Posted 2 days and 2 hours ago Link to this post

    Hello Lak,

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

Back to Top