is there anyway to remove the pagination on CGridView and show all row in one page?
i already try to use pageSize with value 0 but it doesn’t show all row in one page.
thanks…
is there anyway to remove the pagination on CGridView and show all row in one page?
i already try to use pageSize with value 0 but it doesn’t show all row in one page.
thanks…
For the CActiveDataProvider set ‘pagination’ to false - http://yiiframework.com/doc/api/1.1/CDataProvider#pagination-detail
what about CGridView::enablePagination or CActiveDataProvider::pagination.
thanks for reply…
and i made it!!!
just set pagination to false…
thanks for help…
Hi all,
hi cloud3peace, what version do you have?
I use Yii 1.1.8 and your trick not working.
change the property enablePagination to false (‘enablePagination’=>false), only hide pagination and the number of row still 10 in a page.
and this kind not working too
...in CGridview...
'pager'=>array(
'class'=>'CLinkPager',
'pageSize'=>'0',
)
....
this not working too
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
'pagination'=>array(
'pageSize'=>'0',
),
));
and this raise error
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
'pagination'=>false,
));
Anyone have another trick? Please help…
I need showing all record in one page with CGridview
Thank you, worked for me!
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'mail-parser-grid',
'dataProvider'=>$model->search(),
[b] 'enablePagination' => false,[/b]
'columns'=>array(
'max_mails_per_process',
'message_size_limit',
'content_type',
'update_date',
'ticketid_type',
array(
'class'=>'CButtonColumn', 'template'=>'{view}{update}',
),
),
)); ?>
you can also achieve the same with this…
$dp = $model->search();
[size=2]$dp->pagination->pageSize = $model->count();[/size]
[size=2][/size]
This works thank you!
I am using Yii 1.1.14, and this is the only solution on this page that worked for me! THANK YOU!
Please help me?
I want to remove pagination and display all row of table in one page…
How can i do that?
thank you…please help
Please help me?
I want to remove pagination and display all row of table in one page…
How can i do that?
thank you…please help
hi
write this code in your model search function
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
'Pagination'=>FALSE
));
HI,
How to remove pagination in TbGridView?pagination=>false,cant work.