We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Triggering validation on blur of a grid input control

Hi.

We've experienced that there are certain validation types which do not trigger on blur.

For example, a control which is mandatory does not trigger as invalid when the user leaves it blank.

Is it possible to set every validation/control type to validate on blur?

Thanks.

1 Reply

RU Ragavee U S Syncfusion Team January 27, 2016 09:56 AM UTC

Hi Greg,

Thanks for contacting Syncfusion support.

We analyzed your requirement to display validation messages upon focus out on an element while editing. We have achieved your requirement using the below workaround.

<script type="text/javascript">

    $.validator.defaults.onfocusout = function (element) {

        $(element).valid();

    };


</script>


Demo Link: http://jsplayground.syncfusion.com/cifzbr5x

Regards,
Ragavee U S.

Loader.
Live Chat Icon For mobile
Up arrow icon