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

[Solved] Telerik and jQuery TOOLS UI Library don't play nice?

1 Answer 53 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.
Adam
Top achievements
Rank 1
Adam asked on 26 Jun 2011, 10:11 PM
Hey all,

I did some research and couldn't find any answers to my problem, so I thought I'd post it here.  I'm trying to use the jQuery TOOLS UI library (http://flowplayer.org/tools/index.html) in my application but it's somehow breaking Telerik's tGrid functionality.

I have no other scripts on my page, I have a simple:

@(Html.Telerik().ScriptRegistrar())

which works fine, my AJAX functionality works great, then I add a reference to the TOOLS library:

<script src="@Url.Content("~/Scripts/libs/jquery.tools.min.js")"></script>

and I get the following error:

jQuery("#teamMemberGrid").tGrid is not a function
http://localhost/AdviseMe/TeamMember
Line 1301

Take back out the reference to the tools lib, and it works.  I'm not proficient enough to see what it is in this library that's clashing with Telerik.  Anyone have any ideas?

Thanks,

Adam


1 Answer, 1 is accepted

Sort by
0
Chuck
Top achievements
Rank 2
answered on 29 Aug 2011, 03:53 AM
You don't mention if the javascript file you are including for jQuery-tools includes jQuery itself (one of the options) or not, but I was running into a similiar problem that I was able to solve by adding .jQuery(false) after the Telerik ScriptRegistrar, explicitly including jquery 1.5.2, and then including jQuery-tools 1.2.6 with everything EXCEPT jquery included (since 1.2.6 includes qQuery 1.5.1 and I was using 1.5.2).

Hopefully (if you haven't solved the problem yet) this will work for you as well.


Tags
General Discussions
Asked by
Adam
Top achievements
Rank 1
Answers by
Chuck
Top achievements
Rank 2
Share this question
or