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
5 Answers, 1 is accepted
You can register jquery validate like this:
Html.Telerik().ScriptRegistrar().DefaultGroup(g => g.Add("jquery.validate.js"));
Regards,
Atanas Korchev
the Telerik team
@(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
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?
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
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