Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > jquery 1.5

Not answered jquery 1.5

Feed from this thread
  • Daniel Collier avatar

    Posted on Mar 16, 2011 (permalink)

    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!

  • nachid Master avatar

    Posted on Mar 16, 2011 (permalink)

    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


  • Ed avatar

    Posted on Mar 16, 2011 (permalink)

    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

  • Rosen Rosen admin's avatar

    Posted on Mar 17, 2011 (permalink)

    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!

  • Ed avatar

    Posted on Mar 17, 2011 (permalink)

    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

  • Rosen Rosen admin's avatar

    Posted on Mar 18, 2011 (permalink)

    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

  • Stacey avatar

    Posted on Mar 18, 2011 (permalink)

    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.

  • Ed avatar

    Posted on Mar 18, 2011 (permalink)

    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
    
    
    

  • Ed avatar

    Posted on Mar 18, 2011 (permalink)

    The version on gibhub doesn't have this file
    jquery.validate.unobtrusive.min.js

    Do I need an update to this file?

    Many Thanks

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Mar 20, 2011 (permalink)

    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

  • nachid Master avatar

    Posted on Apr 1, 2011 (permalink)

    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

  • James avatar

    Posted on Apr 7, 2011 (permalink)

    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?

  • Posted on Apr 15, 2011 (permalink)

    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 

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > jquery 1.5