Pager in CGridVIew

Hi all!

I print the data throughout the CGridVIew. By default pageSize equals 10 items. How can I increase this value?

I try something like this:


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

	'id'=>'gallery-grid',

	'dataProvider'=>$model->search(),

	'filter'=>$model,

	'pager'=>array('pageSize'=>20),

	'columns'=>array(

            'name',

            'parent',

         ),

)); ?>

But it doesn’t work, ten items prints anyway

try to check pagination in dataProvider