Turn Off Pagination

Hi all,

I have a view page, where all the records are displayed using pagination. But i don’t want pagination, and like all the records to be displayed in a scroll box instead.How can i do this. Please suggest.

I have turned off pagination , but only few records are displayed in the page.

can be done by not calling the property pagination (in dataprovider)

if you are using data provider, may be like this:




return new CActiveDataProvider(get_class($this), array(

			'criteria'=>$criteria,

                //'pagination'=>array('pageSize'=>5),

                'sort'=>array(

                    'attributes'=>array(

                       'firstname'

                    ),

                ),

		));



According to the current documentation (1.1.10) you have to set pagination to false, because not setting it, will create a default pagination.




return new CActiveDataProvider(get_class($this), array(

                'criteria'=>$criteria,

                'pagination'=>false,

            ));