Pagination with zii.widgets.CListView

I was not happy with the default 10 items per page that zii.widgets.CListView was displaying for me so I tried to turn off pagination:




<ul>

<?php $this->widget('zii.widgets.CListView', array(

    'dataProvider'=>$dataProvider,

    'itemView'=>'_view',

    'enablePagination'=>false,

)); ?>

</ul>



but to my surprise it just truncated my list to 10 items without the next page option, instead of displaying them all. So two questions:

[list=1]

[*]how do I control more advanced options like the items per page and

[*]if I did just want it to list everything, should I drop this widget altogether?

[/list]

Looks like pager property would help with this but I ended up following the example that can be seen with CPagination as it pushed the decision into the controller.

You should edit the CPagination ebedded in the dataprovider.


$dataProvider->pagination->pageSize=10