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

Not answered Load jQueryValidation

Feed from this thread
  • Ludvík avatar

    Posted on Apr 4, 2012 (permalink)

    Hi,
    what is the correct way to load jQueryValidation? Unobtrusivevalidate use that requires jQueryValidation but jQueryValidation is loaded only when on the page is some component from Telerik, which uses jQueryValidation. It does not help settingjQueryValidation (true).

    regards
    Ludvík Prouza 

    Reply

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Apr 9, 2012 (permalink)

    Hello,

     You can register jquery validate like this:

    Html.Telerik().ScriptRegistrar().DefaultGroup(g => g.Add("jquery.validate.js"));


    Regards,
    Atanas Korchev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.

    Reply

  • Sam avatar

    Posted on May 1, 2012 (permalink)

    I am running into an issue where it seems Telerik is loading jQuery.validation even though I set it to not:

    @(Html.Telerik().ScriptRegistrar().jQuery(false).jQueryValidation(false).DefaultGroup(group => group.Combined(true).Compress(true)))

    This is causing all sorts of issues where the validation does work.

    Also, if I remove the jquery.validation files from my other scripts location and let Telerik load it, unobtrusive validation fails.

    This is a show stopper!! Please help!!

    Sam

    Reply

  • Sam avatar

    Posted on May 2, 2012 (permalink)

    So according to this:

    http://www.telerik.com/products/aspnet-mvc/whats-new/release-history/q1-2012-sp1-version-2012-1-419.aspx 

    This issue has been fixed, but only for commercial licenses? Makes no sense to me since it is a show stopper to not release it to the Open Source version as well.

    Any suggestions?

    Reply

  • Chris avatar

    Posted on May 16, 2012 (permalink)

    Hi,

    Exactly the same problem here.  Now luckily we have the commercial license so I can login under that one and download...

    BUT... I've used NuGet to install the package and the update doesn't seem to be available through that so it seems I'll have to uninstall the NuGet package, download and reference normally - a lot of hassle.

    When will this update be available through NuGet?

    Thanks

    Chris 

    Reply

  • Daniel avatar

    Posted on May 17, 2012 (permalink)

    There is a work-around for this issue:
    1. Clear out the contents of the jquery.validate.min.js file and resave back to the telerik scripts directory.
    2. Use the following scriptregistrar command (which basically includes your own jquery validation files and ignores the telerik ones);

    @(Html.Telerik().ScriptRegistrar().DefaultGroup(g => g.Add("jquery.validate.min.js").Add("jquery.validate.unobtrusive.min.js").DefaultPath("~/Scripts/Telerik").Combined(false).Compress(false))

     

    .jQuery(

     

    false).jQueryValidation(false))

    3. Apply unobtrusive validation as per this link: http://www.telerik.com/community/forums/preview-thread/aspnet-mvc/grid/client-side-validations-with-mvc-3-don-t-work.aspx

     

    Reply

Back to Top

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