Hi all I try to use CListview to store my items and items are display in table row<tr> form
However if sorting is enabled and sortable attributes are made … ajaxrequest will response back with the correct sorted elements from dataprovider but is unable to reload the table drawing. Anyone any ideas on how to fix this?
Cheers
[b]in index
[/b]<table class='crud'>
<thead>
<th>Heading</th>
<th>Type</th>
<th>Status</th>
<th>Publish</th>
<th>Action</th>
</thead>
<tbody>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
'sortableAttributes'=>array('id'),
'id'=>'ajaxListView',
'enableSorting'=>1,'ajaxUpdate' => true,
)); ?>
</tbody>
</table>
[b]in view file[/b]
<tr>
<td><?php echo CHtml::encode($data->headline); ?></td>
</tr>