How can i increase row on CGridView?
default is 10 row so i must click next page to see the other rows.
i want to show 50 row at once…
thanks…
How can i increase row on CGridView?
default is 10 row so i must click next page to see the other rows.
i want to show 50 row at once…
thanks…
you ought to set in the CActiveDataProvider (usually in model, function search() )
add something like this
...
'pagination' => array('pageSize'=>50),
...
thanks for the reply…
but i got the answer…
just put
‘pagination’=>array(‘pageSize’=>50),
on return value of model search function, maybe like this:
return new CActiveDataProvider(get_class($this), array(
'criteria'=>$criteria,
'pagination'=>array('pageSize'=>50),
));