title: Yii ClinkPager doesn't work on Ajax Request
body: <p>Firstly, when the page gets loaded, ClinkPager works properly with all the paging correctly displayed. 
  But when Ajax Request is sent, the results get populated correctly with all the paging.
  But clicking on the next or another page in the Paging, the previous data gets loaded and also paging shows different sequence.</p>
  
  <pre><code>/*Controller action to fetch the records and apply the pagination*/
  //---------------------------------------------------------------
  public function actionGetUser($user_id=null)
  {
  $user_domain= (isset($_POST['user_domain'])?$_POST['user_domain']: null);
  
  $model=new UserSearch();
  $criteria=new CDbCriteria();
  //If Category/Title are also specified for search, then its an Ajax request.
  if((isset($_POST['ajax_search'])) &amp;&amp; ($_POST['ajax_search']==1))
  {
      //Change the search criteria accordingly
      $criteria-&gt;select="*";
  
              if($user_domain!= null)
      {
                  //Adding criteria to search for ideas of specific domain
          $criteria-&gt;addCondition("user_domain=".$usr_domain);
      }
  }
      //Retrieve the users.
  $searchData = $model-&gt;search();
  
  //Count the no. of results retrieved.
  $count=UserSearch::model()-&gt;count($criteria);
  
  //Enable pagination
  $pages=new CPagination($count);
  $searchData-&gt;setPagination($pages);
  $pages-&gt;applyLimit($criteria);
  
  //Search for ideas satisfying that criteria
  $models=userSearch::model()-&gt;findAll($criteria);
  
      if((isset($_POST['ajax_search'])) &amp;&amp; ($_POST['ajax_search']==1))
  {
      //Rendering the respective page
      $this-&gt;renderPartial('renderOnAjax', array(
                  'user' =&gt; $models,
                              'pages' =&gt; $pages,
              'user_count'=&gt;$count
          ));
      }
      else
  {
      //Rendering the respective page
      $this-&gt;render('render', array(
                  'user' =&gt; $models,
                  'pages' =&gt; $pages,
              'user_count'=&gt;$count
          ));
  }
  }
  //------------------------------------------------------------
  
  /*render page*/
  //------------------------------------------------------------
  &lt;div&gt;
  &lt;div class="userInfo" id="user_search_result"&gt;
      &lt;?php $this-&gt;renderPartial("renderOnAjax",array('user'=&gt;$user, 'pages'=&gt;$pages));?&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  //------------------------------------------------------------
  
  /*renderOnAjax Page*/
  //------------------------------------------------------------
  &lt;?php 
  $i=0; 
  $count=count($user);?&gt;
  &lt;?php while($i!=$count) {?&gt;
  &lt;?php $row=$count[$i];?&gt;
  &lt;div class="Box"&gt;
  /*Some contain to display...*/
  
  &lt;/div&gt;
  &lt;?php $i++;?&gt;
  &lt;?php } ?&gt;
  
  &lt;div class="row"&gt;
      &lt;?php  $this-&gt;widget('CLinkPager', array(
              'pages' =&gt; $pages
          ));
      ?&gt;
  &lt;/div&gt;   
  </code></pre>
  
  <p>//---------------------------------------------------------</p>