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.
Up arrow icon