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

How do I slow down the kendo validator when using server side validation?

3 Answers 62 Views
Validation
This is a migrated thread and some comments may be shown as answers.
gregory
Top achievements
Rank 1
gregory asked on 02 Mar 2019, 10:28 AM

I have an issue when using server side validation with the Kendo validator. When the input has focus, the server side validation seems to occur 3-4 times per second hitting the server. This only happens when there is an error, and the server returns false (something was not validated correctly). The server side validation occurs rapidly after that and it seems to slow down the browser, and when the user corrects the value and clicks on the submit button, the browser stops processing and freezes until you hit the submit button again. The browsers performance is degraded as well. 

Can I slow down how often I hit the server when there was an error? Any suggestions would be welcome.

The approach that I developed is at http://gregoryalexander.com/blogCfc/client/index.cfm/2019/3/1/Kendo-Server-Side-Validation. 

Hit the comment button on this thread, make a mistake on the captcha text, fix it to replicate.

3 Answers, 1 is accepted

Sort by
0
gregory
Top achievements
Rank 1
answered on 02 Mar 2019, 10:32 AM
I suspect that I can reload the window on an error which will stop the rapid server side processing, but would rather not use this approach.
0
gregory
Top achievements
Rank 1
answered on 05 Mar 2019, 07:03 AM
I added new logic to only validate against the server when the value that the user entered in had changed. I don't know of any other approach to slow down the timing of the validator. 
Please feel free to close.
0
Accepted
Dimitar
Telerik team
answered on 05 Mar 2019, 12:51 PM
Hello Gregory,

Indeed the chosen approach of validation the user input on the server only upon value change is valid. If this works correctly on your end, I would suggest sticking with it. The alternative would be to modify/extend some of the core functionality of the Validator so that it matches the exact requirements. In case you would like to pursue this approach, please refer to the following documentation that could help you get started:

In case you have any additional questions, please do not hesitate to contact us.

Regards,
Dimitar
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.
Tags
Validation
Asked by
gregory
Top achievements
Rank 1
Answers by
gregory
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or