i need to know how to change pageSize value i want to show 20 record instead of default 10. and i wana change ajax pagination links to 5 instead of 10 default.
any idea i tried with ‘pagination’=>array(‘pageSize’=> 20) but that not worked for me.
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('User');
$this->render('index',array(
'dataProvider'=>$dataProvider,
));
}
this my index view
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
//'pager' => 'application.extensions.my_page', //this is working
'maxButtonCount'=>5, //this is not working
'columns' =>array(
'user_name',
'user_email',
'user_password',
'user_country',
array(
'name' =>'date_created',
'value'=>'date_format(date_create($data->date_created), "Y-m-d H:i:s")',
),
)
));
?>