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...
Page 1 of 1
No Pagination on CGridView
#2
Posted 03 November 2010 - 02:34 AM
For the CActiveDataProvider set 'pagination' to false - http://yiiframework....gination-detail
Find more about me.... btw. Do you know your WAN IP?
#4
Posted 03 November 2010 - 11:27 PM
thanks for reply...
and i made it!!!
just set pagination to false...
thanks for help...
and i made it!!!
just set pagination to false...
thanks for help...
#5
Posted 05 October 2011 - 03:45 AM
cloud3peace, on 03 November 2010 - 11:27 PM, said:
thanks for reply...
and i made it!!!
just set pagination to false...
thanks for help...
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
#7
Posted 24 January 2013 - 12:30 AM
<?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}',
),
),
)); ?>
Thanks
Nisanth Thulasi
Nisanth Thulasi
#8
Posted 24 January 2013 - 04:24 AM
you can also achieve the same with this...
$dp = $model->search(); [size=2]$dp->pagination->pageSize = $model->count();[/size]
Share this topic:
Page 1 of 1

Help
















