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

[Solved] Using other jquery addons with telerik?

2 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vi
Top achievements
Rank 1
Vi asked on 24 Apr 2012, 02:09 AM
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.

2 Answers, 1 is accepted

Sort by
0
Pechka
Top achievements
Rank 1
answered on 24 Apr 2012, 06:48 AM
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")
0
Vi
Top achievements
Rank 1
answered on 24 Apr 2012, 12:30 PM
Thanks, that worked.

I used the .jQuery(false)
Tags
General Discussions
Asked by
Vi
Top achievements
Rank 1
Answers by
Pechka
Top achievements
Rank 1
Vi
Top achievements
Rank 1
Share this question
or