This is a migrated thread and some comments may be shown as answers.

Validation Message Firing in Mouse and Tab Events

1 Answer 9 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Somalingana Gouda
Top achievements
Rank 1
Somalingana Gouda asked on 09 Mar 2021, 05:22 AM

Hi Team,

We have observed that validation messages are firing in only Submit(Add Button) click event in 2016 kendo Version.

But in latest 2020 Kendo version, validation messages are firing in mouse click events and Tab events.

 

Kindly help on this to trigger only Button click event.

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 11 Mar 2021, 04:45 PM

Hi,

The Validator has a validateOnBlur configuration option, which by default is enabled and causes validation to trigger on focusing an input and then blurring it by clicking away or pressing Tab. To prevent this from happening and to trigger the validation on pressing the submit button, disable the option:

$("#ticketsForm").kendoValidator({
  validateOnBlur: false
});

Here's an example: https://dojo.telerik.com/AlOJUfic

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Somalingana Gouda
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or