Yii Framework Forum: CGridView pagination - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CGridView pagination Rate Topic: -----

#1 User is offline   Like2dev 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 23
  • Joined: 20-March 10
  • Location:Mykolaiv

Posted 28 April 2010 - 02:06 PM

How i can remove Go To Page , and rename button 'next' e.t.c

Screen : http://s42.radikal.r...6a293806ea2.jpg

code:

$dataProvider=new CActiveDataProvider('Hosting', array(
        	'criteria'=>$criteria,
			'pagination'=>array(
				'pageSize'=>'5',
			),	    	
        ));

0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 29 April 2010 - 02:11 AM

You cannot set it in the CActiveDataProvider, but can for example in the CGridView
for example:
$this->widget('zii.widgets.grid.CGridView', array(
   'dataProvider'=>$dataProvider,
   'pager'=>array(
      'class'=>'CLinkPager',
      'header'=>'Idi na->',
   )
));


For all possible labels (attributes) take a look at the CLinkPager class: http://www.yiiframew.../api/CLinkPager
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   Kailas P. Bedarkar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 14-December 13

Posted 05 July 2014 - 02:05 AM

View PostMaurizio Domba Cerin, on 29 April 2010 - 02:11 AM, said:

You cannot set it in the CActiveDataProvider, but can for example in the CGridView
for example:
$this->widget('zii.widgets.grid.CGridView', array(
   'dataProvider'=>$dataProvider,
   'pager'=>array(
      'class'=>'CLinkPager',
      'header'=>'Idi na->',
   )
));


For all possible labels (attributes) take a look at the CLinkPager class: http://www.yiiframew.../api/CLinkPager



cgrid view pager save the filter on goto next page?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users