OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Client side validation not working #6095

Open improwise opened 8 years ago

improwise commented 8 years ago

Tyring to implement Teleriks Kendo UI in an own module but having problem with client validation. After getting some help from Telerik, it seems Orchard has a problem with client side validation which probably the reason why it isn't working. This is described in a thread here:

http://stackoverflow.com/questions/9178002/orchard-cms-dataannotations-client-side-validation

Have now tried this with 1.9.2 and it is still a problem as described in the thread above.

Is there any workaround until it has been fixed properly? Not to keen on modifying the source code for Orchards Core for obvious reasons but need to find a short term solution also as we currently don't have working client side validation because of this.

(Originally posted this to CodePlex instead not remembering the project had moved here)

Lawyerson commented 7 years ago

I currently find myself making changes to the Orchard 1.9.3 source to get client side validation working on a custom form, following the steps taken by the people in this discussion: http://stackoverflow.com/questions/18020131/orchard-client-side-validation-how-should-it-look-work.

The built-in validation is an asp.net mvc staple and I'm kind of surprised that the Orchard team has been okay with breaking it to facilitate localization for years and counting.