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

Unobtrusive jQuery 1.5 broken

8 Answers 197 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.
dejavu
Top achievements
Rank 2
dejavu asked on 15 Apr 2011, 05:27 PM
As someone else said in this subforum, unobtrusive jquery appears to be broken. I made an application with a simple Ajax.HtmlForm:

@model RetrievePasswordModel
 
@{
    using (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "BodyContent", InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace, LoadingElementId = "ProgressIndicator" }))
    {
        <ul class="DataInput">
            <li>
                <span>Enter the username</span>
            </li>
            <li>
                @Html.LabelFor(m => m.EmployeeCode)
                @Html.TextBoxFor(m => m.EmployeeCode, new { @class = "InputTypeText100" })               
                @Html.ValidationMessageFor(m => m.EmployeeCode)
            </li>
            <li>
                <input type="submit" value="Retrieve" class="Send" />
            </li>
        </ul>
    }
}

Problem is, that the progress indicator that i'm using works perfectly, but overrides unobtrusive validation. And if i remove unobtrusive ajax validation, client validation works but the value for LoadingElementId in Ajax.BeginForm is COMPLETELY IGNORED.

And here is jscript files (in that order actually):

@(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group
            .Add("telerik.common.min.js")
            .Add("telerik.grid.min.js")
            .Add("telerik.calendar.min.js")
            .Add("telerik.datepicker.min.js")
            .Add("telerik.grid.filtering.js")
            .Add("jquery.easing.1.3.js")
            .Add("Silverlight.js")
            .Add("jquery.simple.tooltip.js")
            .Add("jquery-1.4.4.min.js")
            .Add("jquery.unobtrusive-ajax.min.js")
            .Add("jquery.validate.min.js")
            .Add("jquery.validate.unobtrusive.min.js")
            .Add("jquery-ui.min.js")
            .Add("jquery.jclock.js")
            .Add("sic.funciones.js")
            .Combined(true)
            .Compress(true)
            .CacheDurationInDays(0))
            .Globalization(true))


Things i've tried:

  1. different versions of jQuery (1.4.1, 1.4.4, 1.5.1)
  2. different versions of jquery.validate (1.7 -> author's declaring broked?, 1.8)
  3. ASP.NET MVC 3 using Razor project, works 100%
  4. Telerik MVC 3 using Razor, doesn't work (you got client validation but no progress indicator using LoadingElementId, or you can the image but client validation is ignored).

Will this be fixed anytime soon?. This is very frustrating.

Greetings.

8 Answers, 1 is accepted

Sort by
0
Accepted
maciej
Top achievements
Rank 1
answered on 15 Apr 2011, 06:07 PM
Similar issue here...with 2011.1.315 and the bundled jquery 1.5.1.

Certain client side validators would not work correctly.  Such as CompareTo would always fail  and Required would not work  on the 2nd telerik dropdownlist if I had 2 next to eachother.  It was driving me crazy yesterday until I saw these threads.  Once I turned off the bundled jquery and included 1.4.4 in the scriptregistrar everything seems to be working fine so far.

I see in your code above you're not disabling the built in jquery you have to do @Html.Telerik().ScriptRegistrar().jQuery(false)   then you can add 1.4.4 to the group.
0
Accepted
Atanas Korchev
Telerik team
answered on 16 Apr 2011, 10:26 AM
Hello maciej,

 There was a problem between jquery 1.5.1 and jquery.validate. The latter was fixed and if you upgrade to our latest official release (Q1 2011 SP1) all should work as expected.

Kind regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
dejavu
Top achievements
Rank 2
answered on 18 Apr 2011, 12:25 PM
Thanks to both of you. Forgot to add  .jQuery(false) in the code I posted. Anyway, it's possible download the Q1 2011 SP?, Visual Studio yield me every time I open it, but when enter credentials, these are rejected.

What's wrong there? service packs needs to be licensed first?

Greetings!
0
Atanas Korchev
Telerik team
answered on 18 Apr 2011, 01:13 PM
Hi,

 Yes, service pack releases are available only to commercial licenses. This is highlighted in our licensing FAQ.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Superman
Top achievements
Rank 1
answered on 20 Apr 2011, 02:58 PM
I'm having issues with the DateTimePicker when using the drop down button, it doesn't post the new value back on a change event.  I see that this has been fixed in 2011 Q1 SP1 414, but can't download the new version as our Commercial License has expired.  When will 2011 Q2 be released under the GNU Public license? 
0
Accepted
Atanas Korchev
Telerik team
answered on 21 Apr 2011, 09:19 AM
Hi,

 The Q2 2011 release is expected in July. 

 I am sending just the updated files so you can upgrade.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
dejavu
Top achievements
Rank 2
answered on 21 Apr 2011, 04:42 PM
Thanks people. I'll test those files in a couple of projects and will post here my experience.

regards
0
Karan Misra
Top achievements
Rank 1
answered on 21 May 2011, 12:39 AM
Thanks a lot for posting the 414 Dev Hotfix.

Could you please post the Dev Hotfix for 2011_1_511?
Tags
General Discussions
Asked by
dejavu
Top achievements
Rank 2
Answers by
maciej
Top achievements
Rank 1
Atanas Korchev
Telerik team
dejavu
Top achievements
Rank 2
Superman
Top achievements
Rank 1
Karan Misra
Top achievements
Rank 1
Share this question
or