title: How to create ajax delete link in CViewList widget in _view file
body: <p>CGridView widget is already having view,update,dete option.But i am using CListView widget in my jquery mobile based project, but having problem in creating ajax link for delete option. Not getting idea how to create a ajax delete link in _view.php(view file) and its renderPartial() view file to disappear the bar after successfully deleted plz help thanks in advance. Here is the _view.php file link for edit and delete.    </p>
  
  <pre><code>&lt;?php 
  echo CHtml::link(CHtml::encode($data-&gt;id), 
      array('editmember1', 'id' =&gt; $data-&gt;id), 
      array('data-role' =&gt; 'button', 'data-icon' =&gt; 'star')
  );
  
  echo CHtml::link(CHtml::encode($data-&gt;id), $this-&gt;createUrl('customer/delete', array('id' =&gt; $data-&gt;id)), 
      array(
         // for htmlOptions
         'onclick' =&gt; ' {' . CHtml::ajax(array(
         'beforeSend' =&gt; 'js:function(){if(confirm("Are you sure you want to delete?"))return true;else return false;}',
         'success' =&gt; "js:function(html){ alert('removed'); }")) .
         'return false;}', // returning false prevents the default navigation to another url on a new page 
         'class' =&gt; 'delete-icon',
         'id' =&gt; 'x' . $data-&gt;id)
     );
  </code></pre>
  
  <p>?></p>