Override/Cancel default Form validation.

4 posts, 1 answers
  1. Satish
    Satish avatar
    10 posts
    Member since:
    Sep 2011

    Posted 02 May 2012 Link to this post

    I'm using validator to validate my html form. My form has two submit buttons Save and Cancel. So now if I click the cancel button it does a validation and prevents the submit. Is it possible to disable of bypass this behavior so that cancel will submit the form without validation?
  2. Answer
    Rosen avatar
    3215 posts

    Posted 07 May 2012 Link to this post

    Hello Satish,

    You may consider not using the automatic validation when form is submitted (by not attaching the KendoUI Validator to the form element but to some other container) and handle the validation on the button click as shown in this online demo.

    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Howard
    Howard avatar
    67 posts
    Member since:
    Nov 2011

    Posted 19 Jun 2013 Link to this post

    you can do that by calling this function in your cancel button click
    but bear in mind that your form will be submitted to the controller
  4. Helpdesk
    Helpdesk avatar
    3 posts
    Member since:
    Jan 2015

    Posted 17 Jun 2015 Link to this post

    Incase you did not know how to use the destroy

        var validatable = $("form").kendoValidator().data("kendoValidator"); 

        $("#btnCancel").click(function () {

Back to Top