title: CGridview filter on page load with pre define value in search field
body: <p>I am working with the Yii framework.</p>
  
  <p>I have set a value in one of my cgridview filter fields using:</p>
  
  <p>Here is my jQuery to assign a value to the searchfield:</p>
  
  <pre><code>$('#gridviewid').find('input[type=text],textarea,select').filter(':visible:first').val('".$_GET['value']."');
  </code></pre>
  
  <p>And here my PHP for calling the cgridview:</p>
  
  <pre><code>$this-&gt;widget('zii.widgets.grid.CGridView', array(
  'id'=&gt;'bills-grid',
  'dataProvider'=&gt;$dataProvider,
  'filter'=&gt;$model,
  'cssFile'=&gt;Yii::app()-&gt;baseUrl . '/css/gridview.css',
  'pager'=&gt;array(
      'class'=&gt;'AjaxList',
      'maxButtonCount'=&gt;25,
      'header'=&gt;''
  ),
  'columns' =&gt; $dialog-&gt;columns(),
  'template'=&gt;"&lt;div class=\"tools\"&gt;".$dialog-&gt;link()."&amp;nbsp;&amp;nbsp;&amp;nbsp;".CHtml::link($xcel.'  Export to excel', array('ExcelAll'))."&lt;/div&gt;&lt;br /&gt;{items}{summary}&lt;div class=\"pager-fix\"&gt;{pager}&lt;/div&gt;",));
  </code></pre>
  
  <p>The value appears in the search field and my cgridview works correctly without any issues, but I am unable to trigger the cgridview to refresh or filter.  Does anyone know who to trigger the cgridview to filter after page load with a predefined value?</p>
  
  <p>Any help would be greatly appreciated and please let me know if you need additional information.</p>
  
  <p>Thank you.</p>