title: Yii reload page after CGridview Delete
body: <p>OK, this is frustrating.</p>
  
  <p>All I simply want to do is reload the page after a CGridView Delete action.
  As the Delete is performed VIA Ajax, I cannot seem to reload the page.</p>
  
  <p>I need to do this as I have other data on the page that is dependant on the data that I am deleting.</p>
  
  <p>I have tried in the view</p>
  
  <pre><code>'class'=&gt;'CButtonColumn',
  'header'=&gt;'Delete',
  'template'=&gt;'{delete}',
  'buttons'=&gt;array(
      'delete'=&gt;array(
          'success'=&gt;'function(){
              window.location = location.href;
          }',
      ),
  ),
  </code></pre>
  
  <p>Also in the delete controller as well</p>
  
  <pre><code>echo CHtml::script("
      window.location.reload();
  ");
  Yii::app()-&gt;end();          
  </code></pre>
  
  <p>Any help appreciated.</p>
  
  <p>Regards</p>