title: Client Validation error does not prevent submit & ajax request
body: <p>I use Yii client validation to validate some inputs and when there is an error in the user input, Yii client Validation does not prevent submit and does not prevent ajax request.
  I use grid widget "carvw-grid" and when user click submit button its make ajax request to update "carvw-grid" content with results. I want to prevent submit and ajax request when there is a client validation error. </p>
  
  <p>here is my script code:</p>
  
  <pre><code>Yii::app()-&gt;clientScript-&gt;registerScript('search', "
  $('.search-button').click(function(){
  $('.myloading').show();
  $('.myshow').hide();
  $('.myresult').slideUp().delay(3000).queue(function() {
      $(this).show();
      $('.myloading').hide();
      $('.myloading').addClass('myshow');
      });
      });
  
  $('.search-form form').submit(function(){
      $.fn.yiiGridView.update('carvw-grid', {
          data: $(this).serialize()
      });
      return false;
  });
  ");
  </code></pre>
  
  <p>and here is my form </p>
  
  <pre><code>&lt;?php $form=$this-&gt;beginWidget('CActiveForm', array(
      'id'=&gt;'carvw-form',
      'action'=&gt;Yii::app()-&gt;createUrl($this-&gt;route),
      'method'=&gt;'get',
      'enableAjaxValidation'=&gt;false,
      'enableClientValidation'=&gt;true,
      'focus'=&gt;array($model,'OWNER_ID'),
      'clientOptions' =&gt; array('validateOnSubmit'=&gt;true, 'validateOnType'=&gt;true),
  
  )); ?&gt;
  </code></pre>
  
  <p>and here is my submit button</p>
  
  <pre><code>&lt;div class="row buttons"&gt;
      &lt;?php echo CHtml::submitButton('search',array('class'=&gt;'search-button')); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and here is my grid</p>
  
  <pre><code>&lt;?php 
      $this-&gt;widget('zii.widgets.grid.CGridView', array(
      'id'=&gt;'carvw-grid',
      'dataProvider'=&gt;$model-&gt;search(),
  
      'columns'=&gt;array('CAR_COMPANY_NAME','MODEL_YEAR',
          'CAR_COLOR_NAME',
          'USING_TYPE_NAME',array(
              'class'=&gt;'CButtonColumn',
          ),
      ),
  ));
  
   ?&gt;
  </code></pre>
  
  <p>How can i prevent submit and ajax request on client validation errors? </p>