how do I reset the validator

1 Answer 26 Views
General Discussions
EdwardCandis
Top achievements
Rank 1
EdwardCandis asked on 24 Jan 2022, 11:37 AM | edited on 09 Feb 2022, 06:34 AM

Hi

I am working on a project that utilizes multiple rows. I have "required" in the html and a validator (such as the one below) in the typescript file.

The issue is that, if I check for validation and it returns false, then I close the window and go to a different row, the new row will still have false validations from the previous row and will still have the red borders around the required fields.

I can't find a way to turn off the validation when the row is exited.

I have attempted things such as this.kendoValidator.cleanAttributes; thinking it would clear the validation when the window is closed but the validator is still holding onto that false value for any other row that echatazar I go into.

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 27 Jan 2022, 08:18 AM

Hello EdwardCandis,

I did not find a typescript file attached or a Validator configuration. Please let me know if I am missing something.

You could reset the Validator by using the reset method. In the Dojo example linked here, the form can be validated on a button click. Then the Validator can be reset on click the 'Reset' button. 

If the above does not help, please provide more details about the scenario on your side, so I could understand the issue better and advise you further. 

Regards,
Neli
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
EdwardCandis
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or