Bypass Validation

3 posts, 0 answers
  1. James
    James avatar
    37 posts
    Member since:
    Sep 2014

    Posted 15 Jan 2015 Link to this post

    I have a form with both a submit and cancel button.  I am performing validation on multiple fields when they lose focus and when the form is submitted.  Is there anyway to bypass validation when the cancel button is clicked? 
  2. James
    James avatar
    37 posts
    Member since:
    Sep 2014

    Posted 16 Jan 2015 in reply to James Link to this post

    I found this post in the forum with a similar problem but I am not sure what they mean by not attaching the validator to the form element.  I have looked at the samples and I believe I am doing the same thing.  However, my data is still be validated when I click the cancel button.
  3. Kendo UI is VS 2017 Ready
  4. James
    James avatar
    37 posts
    Member since:
    Sep 2014

    Posted 16 Jan 2015 Link to this post

    After some more reading and trial and error, I did get this to work like explained in the question linked in my previous post.  I simply chose another "container" when attaching my validator.  I then had to add onclick logic to my buttons where I wanted validation to occur.
Back to Top