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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve validation message appears even after value change on the drop down?

Platform: JavaScript |
Control: ejGrid |
Published Date: August 21, 2018 |
Last Revised Date: August 21, 2018

This KB showcase the example to disappear the Validation Message shown even after the value is changed in the dropdown list using valid method.

Solution:

In dropdown list, we have maintained the hidden input element. The jQuery validation is not works for hidden element. Due to this the default validation is not working in dropdown list to overcome this, use the valid method in the dropdown change event.

Step 1: Render the grid control.

HTML

 

JS

 

MVC

 

 

ASP

 

 

.Net core

 

 

Angular

 

 

Step 2: In the actionComplete event while adding the records, we have removed the validation message using valid method in the dropdown change event.

 

Figure 1: Before using valid method, Validation Message is shown even after the value is changed in the drop down.

 

Figure 2: After using valid method, Validation Message is disappeared when value is changed in dropdown.

 

 

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon