Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Using other jquery addons with telerik?

Not answered Using other jquery addons with telerik?

Feed from this thread
  • Vi avatar

    Posted on Apr 23, 2012 (permalink)

    How can you use telerik with other jquery add ons when telerik needs the script register at the bottom of the page? I'm running into issues where my jquery add on that I want to use calls a script to load it during the header in which I already call jquery 1.7.2 in the head. When running the page I get a error with this script saying the element it's looking for is null because the script register called another instance at the bottom of the page.

    Reply

  • Pechka avatar

    Posted on Apr 24, 2012 (permalink)

    Yo mate,

    Do not add the jQuery script multiple times. Two options:
    1)Disable the jQuery from the ScriptRegistrar and add it manually at the top of the page before your scripts
    2)Do not add the jQuery script manually but register your scripts to be loaded with the ScriptRegistrar

    Html.Telerik().ScriptRegistrar()
                         .DefaultGroup(group => group
                             .Add("CustomScripts.js")

    Reply

  • Vi avatar

    Posted on Apr 24, 2012 (permalink)

    Thanks, that worked.

    I used the .jQuery(false)

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Using other jquery addons with telerik?