Input Html Between Items And Pager Of Clistview With Support Ajax

Hi,

I use Yii v1.1.13

About CListView widget, I need to input html between items and pager.

I use this sample code:




<?php 

$myGrid = $this->widget('zii.widgets.CListView', array(

	'dataProvider'=>$dataProvider,

	'itemView'=>'_ClistView_view',

	'template'=>'',

));

$myGrid->renderItems();

echo '<div>My other content</div>';

$myGrid->renderPager();

?>



It’s ok, but just the pagination does not support AJAX.

How can I resolve it?

Thanks

You may probably use template parameter. Otherwise you will probably need to overwrite CListView or write your own implementation extending from CBaseListView - I would take a look at renderContent() and renderSection() methods. You may provide your own template item (for example "{custom}") to be rendered with a method implemented by you and named as renderCustom().

Also accidentally saw this wiki article today - it describes similar approach I’ve written about. I didn’t study it thoroughly, but idea is a workable one.