NumericTextBox issue with Validator when validateOnBlur is false

1 Answer 25 Views
NumericTextBox Validation
Laurent
Top achievements
Rank 2
Iron
Iron
Laurent asked on 10 Mar 2025, 04:16 PM

Hi Team,

Found this issue with NumericTextBox. Please consider dojo: https://dojo.telerik.com/RSXrPCFH

When KendoValidator is initialised with validateOnBlur:false, KendoNumericTextBox looses .k-invalid class and associated style when moving out of field.

Try this:

1. Click button "Validate fields".

2. The 2 fields get red.

3. Click into second field (numeric) and then move out the field. The field looses its invalid status!

4. The other field (text) keeps its invalid status when doing the same.

 

Please advise.

Regards,

Laurent.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 13 Mar 2025, 12:03 PM

Hello, Laurent,

Thank you for reporting the behaviour. 

I have opened a new bug report in our Feedback Portal where you can track its status. A possible workaround would be to manually add the k-invalid class if the !validator.validateInput($("input[name=username]")) validation fails.

As a small token of gratitude for reporting the bug, I am updating your Telerik Points.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Tags
NumericTextBox Validation
Asked by
Laurent
Top achievements
Rank 2
Iron
Iron
Answers by
Martin
Telerik team
Share this question
or