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.
Unfortunately, activation email could not send to your email. Please try again.

Triggering validation on blur of a grid input control

Thread ID:

Created:

Updated:

Platform:

Replies:

121790 Jan 26,2016 04:24 AM Jan 27,2016 04:56 AM JavaScript 1
loading
Tags: ejGrid
Greg Gannicott
Asked On January 26, 2016 04:24 AM

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.

Ragavee U S [Syncfusion]
Replied On January 27, 2016 04:56 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;