title: Remote validation with kendo-validator
body: <p>I am new in angular-js. I am developing my app with angular-kendo. I followed </p>
  
  <ol>
  <li><a href="http://kendo-labs.github.io/angular-kendo/#/Validator" rel="nofollow">http://kendo-labs.github.io/angular-kendo/#/Validator</a></li>
  <li><a href="http://www.telerik.com/forums/angular-kendo-validator" rel="nofollow">http://www.telerik.com/forums/angular-kendo-validator</a>.</li>
  </ol>
  
  <p>Before implement the in my real project I implement it in my text project. Look at my view:</p>
  
  <pre><code> &lt;form role="form" name="formTimeLine" kendo-validator="validator" 
   k-options="myValidatorOptions"&gt;
    &lt;p&gt;{{Welcome}}&lt;/p&gt;
      &lt;span class="label required"&gt;Name:&lt;/span&gt;
        &lt;input type="remarks" name="remarks" class="k-textbox" 
        ng-model="fiscalYear.Remarks" data-test="Please write sabbir."/&gt;&lt;br&gt;
         &lt;span data-for='remarks' class='k-invalid-msg'&gt;&lt;/span&gt;
        &lt;button ng-click="Save()"&gt;Save&lt;/button&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>My validation rules in controller is:</p>
  
  <pre><code>  $scope.myValidatorOptions = {
      rules: {
          test: function (input) {
              if (input.is("[name=remarks]")) {
  
                  return input.val() == "Sabbir"
              } else {
                  return true;
              }
          }
      },
      messages: {
          test: "Your UserName must be Sabbir"
      }
    };
  </code></pre>
  
  <p>My save function is as follows:</p>
  
  <pre><code>   $scope.Save = function () {
      //$scope.formTimeLine.$valid
      if ($scope.validator.validate()) {
          alert("Saved");
      }
      else {
          alert("Error");
      }
  };
  </code></pre>
  
  <p>How can I wire up a rule with kendo-validator so that remote validation will be called and validate? It is said to use custom directive and <code>ctrl.$setValidity('unique', false);</code> but calling <code>$scope.validator.validate()</code> return true. </p>