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

jquery 1.5

12 Answers 614 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.
Daniel Collier
Top achievements
Rank 1
Daniel Collier asked on 16 Mar 2011, 02:45 PM
We are interested in upgrading to jquery 1.5.1 or 1.5.  Does anyone know if the Telerik controls are officially compatible with 1.5.1 or 1.5?  I know the latest release, 2010.3.1318, comes with jquery 1.4.4 built in.

Thanks!

12 Answers, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 16 Mar 2011, 10:52 PM
There is a big issue with JQuery 1.5 and client validation
The Validation plugin  isn’t compatible with jQuery 1.5.x.
The author is still working on an upgrade

The latest Telerik (2011.1.315) release was shipped with jQuery 1.5.1
When I installed this version, I had a big mess and I had to revert back to (2010.3.1324)
The main culprit is remote validation and Ajax calls


0
Ed
Top achievements
Rank 1
answered on 17 Mar 2011, 03:19 AM
I just installed the latest build 2011.1.315 and it completely broke my unobtrusive validation and remote validation. I will need to revert back to  2011.1.224.

How can this be resolved. We make it a practice to keep up to date with the newest telerik mvc releases. However, this is a big issue with the jquery versions. If telerik mvc claims to work with mvc 3, then it needs to not break mvc 3 sites due to the jquery versions. It seems that microsoft shipped with 1.4.4. If telerik comes out with later releases of its mvc ahead of the next release by MS, then I believe Telerik should include the necessary jquery files to maintian that compatibility. This latest release 2011.1.315 is NOT compatible with MVC 3. It absolutely breaks the unobtrusive validation.

How do you suggest this issue gets resolved? It's a major issue.

Many Thanks

0
Rosen
Telerik team
answered on 17 Mar 2011, 08:55 AM
Hi Ed,

Indeed it seems that the current version of jQuery.validate plugin's remote validation does not work as expected with jQuery 1.5.1. In order to workaround this you should disable the built-in jQuery:

<%: Html.Telerik().ScriptRegistrar().jQuery(false) %>

and add include the previous version of jQuery manually, for example:

<script src="<%=Url.Content("~/Scripts/jquery-1.4.4.js") %>" type="text/javascript"></script>

Please excuse us for the inconvenience.

Kind regards,
Rosen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ed
Top achievements
Rank 1
answered on 17 Mar 2011, 07:01 PM
Thank you for the workaround. However I do have some concern and would appreciate clarification.

I assumed that the telerik mvc 2011.1.315 release requires jquery 1.5.1. Otherwise, why include it instead of 1.4.4? So am I to understand that rolling back the jquery to 1.4.4 will not break the telerik 2011.1.315 release? In other words there is nothing in the new jquery 1.5.1 that telerik mvc 2011.1.315 needs to work properly?

Thank you
0
Rosen
Telerik team
answered on 18 Mar 2011, 07:51 AM
Hello Ed,

Indeed, there should be no problem to use the jQuery 1.4.4 with the current Q1 2011 release.

Greetings,
Rosen
the Telerik team
0
Stacey
Top achievements
Rank 1
answered on 18 Mar 2011, 02:22 PM
You can get a working version of the validation code from http://bassistance.de/jquery-plugins/jquery-plugin-validation/

He states quite clearly on his website that the 1.7 release does not work, and offers a link to one that does. You'll need to load this as an internal script file (you can't cdn it) because Internet Explorer will disregard the external reference based on improper MIME type, but this solved all of my issues.
0
Ed
Top achievements
Rank 1
answered on 19 Mar 2011, 01:05 AM
This workaround almost works, but I'm running into a glitch.

When I do this:
    @( Html.Telerik().ScriptRegistrar().jQuery(false).Scripts(s => s.AddSharedGroup("jq")))

and this is jq in the web.config
        <add name="jq" combined="false" compress="false" enabled="true">
          <items>
            <add source="~/public/js/jquery/jquery-1.4.4.min.js" />
          </items>
        </add> 

What happens is the loading order is incorrect. It loads the jquery file after the other telerik control files. It needs to be loaded first for everything to work correctly.

This is the loading order output for the above ScriptRegistrar call:
    <script type="text/javascript" src="/public/js/t/2011.1.224/telerik.common.min.js"></script>
<script type="text/javascript" src="/public/js/t/2011.1.224/telerik.menu.min.js"></script>
<script type="text/javascript" src="/public/js/jquery/jquery-1.4.4.min.js"></script>

notice the jquery file is loaded last.
Now, if I use the default like this:
    @( Html.Telerik().ScriptRegistrar())

The loading order is corrrect...

    <script type="text/javascript" src="/public/js/t/2011.1.224/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/public/js/t/2011.1.224/telerik.common.min.js"></script>
<script type="text/javascript" src="/public/js/t/2011.1.224/telerik.menu.min.js"></script>

How can I use your workaround to use 1.4.4 with the ScriptRegistrar?

Many Thanks


0
Ed
Top achievements
Rank 1
answered on 19 Mar 2011, 01:07 AM
The version on gibhub doesn't have this file
jquery.validate.unobtrusive.min.js

Do I need an update to this file?

Many Thanks
0
Atanas Korchev
Telerik team
answered on 20 Mar 2011, 09:41 AM
Hello Ed,

 This is how shared groups work - they are loaded after the default group. Add the jquery script via DefaultGroup or include it manually as a script tag.

Regards,
Atanas Korchev
the Telerik team
0
nachid
Top achievements
Rank 1
answered on 01 Apr 2011, 09:18 AM
I found another issue with jQuery 1.5 even with the latest jquery.validate.js (1.8)
Here is the case :
Take any grid and add to it editing commands something like
.....
 columns.Command(c => c.Delete().ButtonType(GridButtonType.ImageAndText))
                     .Width(50)
                     .Title("Commands");
.....

You'll notice that it will break all your $.getJSON calls.

Digging a little bit with firebug, I found that they are transformed to JSONP calls

The culprit is telerik.grid.editing.js that interacts heavily with jquery.validation

[UPDATE]
Investigating further, it is not only $.getJSON that is failing but any remote validation you have when telerik.grid.editing.js is used
This is looks exactly the same issue as the jquery.validate.js plugin had before they fixed it in 1.8
0
James
Top achievements
Rank 1
answered on 07 Apr 2011, 07:57 PM
Is there any update/fix to this?  It sounds like this is the cause of the issue I'm having getting inline editing working.  I am apparently currently running jquery.validate plugin version 1.7.  Should I upgrade to 1.8?
0
Arnold Smith
Top achievements
Rank 1
answered on 15 Apr 2011, 03:29 PM
Hello Experts,

I have spent a number of days working on this issue. Out-of-box, a MS MVC 3 project works as advertised, but a Telerik MVC 3 project does not. I know I'm restating the obvious, but deadlines loom. Please, make a general announcement when you have things working correctly.

Thank you,


Arnold 
Tags
General Discussions
Asked by
Daniel Collier
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Ed
Top achievements
Rank 1
Rosen
Telerik team
Stacey
Top achievements
Rank 1
Atanas Korchev
Telerik team
James
Top achievements
Rank 1
Arnold Smith
Top achievements
Rank 1
Share this question
or