title: Adding validation in kendo datepicker results recusrive call
body: <p>I have a datepicker and validation in it's blur event. If validation fails I am showing a message to user and focus the datepicker again. But it becomes recursive. </p>
  
  <p>Message appears all the time. User can't get of the loop unless she kills the page. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>(function() {
    $("#kendoDatePicker").kendoDatePicker();
  
    $("#kendoDatePicker").on("blur", function() {
      if ($(this).data("kendoDatePicker").value() &gt; new Date()) {
        alert("Date cannot be greater than today. Please re-enter.");
        var datepicker = $(this).data("kendoDatePicker");
        datepicker.element.focus();
      }
    });
  })();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="http://cdn.kendostatic.com/2012.2.913/js/kendo.all.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;div class="demo-section k-content"&gt;
    &lt;input id="kendoDatePicker" value="04/04/2017" style="width: 100%" /&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Fiddle is here: <a href="https://jsfiddle.net/Hd47F/312/" rel="nofollow noreferrer">https://jsfiddle.net/Hd47F/312/</a></p>