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

4 posts, 1 answers
  1. gregory
    gregory avatar
    47 posts
    Member since:
    Jun 2006

    Posted 02 Mar 2019 Link to this post

    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.

  2. gregory
    gregory avatar
    47 posts
    Member since:
    Jun 2006

    Posted 02 Mar 2019 in reply to gregory Link to this post

    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.
  3. gregory
    gregory avatar
    47 posts
    Member since:
    Jun 2006

    Posted 05 Mar 2019 Link to this post

    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.
  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    807 posts

    Posted 05 Mar 2019 Link to this post

    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.
Back to Top