Customize page size in actionAdmin

Hello guys,

I wanna config page size in actionAdmin, how can I do?

Unlike dataProdiver, there is pagination of CPagination, I can set pageSize and then render to client page, but dataProvider do not support ajax search like actionAdmin()

any idea? :D ::)

If I wanna set page size to “100”, how can I do in actionAdmin (I’m using default actionAdmin of Yii)




$model=new LichChay('search');

		$model->unsetAttributes();  // clear any default values

		if(isset($_GET['LichChay']))

			$model->attributes=$_GET['LichChay'];

        

		$this->render('admin',array(

			'model'=>$model,

		));



See this post by Mike. I think it can help you out.

/Tommy

Thank you so much. :)

It really helpful with me

Thanks again.