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

Disable onblur validation

1 Answer 725 Views
Validation
This is a migrated thread and some comments may be shown as answers.
prashant
Top achievements
Rank 1
prashant asked on 14 Jun 2012, 12:07 PM
hi,
I want to disable onblur validation for kendo  ui textbox  control .How can i achieve it. As per suggestion from kendo forum . I have tried using
$("#div").kendoValidator({ validateOnBlur: false }) 
but it is not working . 

1 Answer, 1 is accepted

Sort by
0
Chuck
Top achievements
Rank 1
answered on 15 Apr 2013, 05:56 PM
This appears to have been fixed.

<div id="emaildiv" style="border:1px solid black">
<p>Validate that an email address was entered for the email input.<br>
    validateOnBlur option is set to false</p>
   <p><label for="email">Email:</label>
    <input type="email" id="email" name="email" required placeholder="your email" validationmessage="Your email is required" /> </p>
   <button type="submit" id="submitemail" value="submitemail">submit email</button>
</div> (function(){ var emailvalidator = $("#emaildiv").kendoValidator({ validateOnBlur: false }) .data("kendoValidator");
  $("#submitemail").on("click", function(){
  if(emailvalidator.validate()){
    alert("no worries");
     }
  });  }(); You can see a working sample here. My blog post is here.
Tags
Validation
Asked by
prashant
Top achievements
Rank 1
Answers by
Chuck
Top achievements
Rank 1
Share this question
or