سؤال

Is there anyway to do client side validations to work with Devexpress MVC submit button? In my scenario, the normal html submit button will work perfectly without firing the Controller action, but Devexpress button always fire the controller action, means its not actually a client side validation. Thanks

هل كانت مفيدة؟

المحلول

You can try this code:

Buttonsettings.UseSubmitBehavior = false;
Buttonsettings.ClientSideEvents.Click = "function(s ,e) { OnSubmit()}";
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top