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,
));
}