How to remove pagination in Tbgridview

HI,

$this->widget(‘bootstrap.widgets.TbGridView’,

    array(


'type'=>'striped bordered condensed',


'dataProvider'=>new CArrayDataProvider($model),  


'template'=>"{summary}{items}{pager}",


'columns'=>array(


	'id',


	array('name'=>'bonous_name','header'=>'Bonusnaam'),				


	'bonus_amount',


	'bonous_percentage',


	'definition',


	)));

Plz tell how to remove pagination in tbgridview,I want show all details in one page,

I wrote in model pagination false please tell what wrong in my code why cant remove pagination,

public function search()

{


	// @todo Please modify the following code to remove attributes that should not be searched.





	$criteria=new CDbCriteria;





	$criteria->compare('id',$this->id);


	$criteria->compare('product_id',$this->product_id);


	$criteria->compare('bonous_name',$this->bonous_name,true);


	$criteria->compare('bonus_amount',$this->bonus_amount);


	$criteria->compare('bonous_percentage',$this->bonous_percentage);


	$criteria->compare('definition',$this->definition,true);


	$criteria->compare('category',$this->category,true);


	$criteria->compare('category_section',$this->category_section,true);





	return new CActiveDataProvider($this, array(


		'criteria'=>$criteria,


		 'pagination' => false,


	));


}

Where you return CActiveDataProvider, set pagination size to big number.




return new CActiveDataProvider($this, array(

'criteria'=>$criteria,

'pagination' => array('pageSize' => 99999999),

));



Thanx For ur reply,

I dont know how to remove pagination exactly,Plz tell me solution what i change my coding i can remove

pagination.

If you set pagination as i have written,

you should remove pagination.

Hi,

Ya i changed But cant remove pagination.

I read now widget declaration:




$this->widget('bootstrap.widgets.TbGridView',

array(

'type'=>'striped bordered condensed',

'dataProvider'=>new CArrayDataProvider($model),

'template'=>"{summary}{items}{pager}",

'columns'=>array(

'id',

array('name'=>'bonous_name','header'=>'Bonusnaam'),

'bonus_amount',

'bonous_percentage',

'definition',

)));



Here you are redefining ‘dataProvider’, so you don’t get data from search() method.

So you have to set here ‘dataProvider’ with pageSize attribute,




....


'dataProvider' => new CArrayDataProvider($model, array('pagination' => array('pageSize' => 9999999999))),


...




Hi,

Thanx a lot,Got it…