문제

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