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

Validation class for MaskedTextBox

2 Answers 181 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
Elena
Top achievements
Rank 1
Elena asked on 21 Aug 2018, 01:06 PM

Hello,

I am trying to add (css: border-color:red) to MaskedTextBox when field is required on submit function but I couldn't find this class. What is name of this class?

Also, I need to remove this class if the customer click on Save button that can skip validations.

Thank you for help.

2 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 23 Aug 2018, 07:06 AM
Hello Elena,

The invalid class used by Kendo is `k-state-invalid`. 

Below you will find a small sample which demonstrates how to toggle the k-state-invalid class in a Kendo MaskedTextBox:



Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Elena
Top achievements
Rank 1
answered on 10 Sep 2018, 06:02 PM
Thank you!!
Tags
MaskedTextBox
Asked by
Elena
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Elena
Top achievements
Rank 1
Share this question
or