Yii Framework Forum: CGridView pager - Yii Framework Forum

Jump to content

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

CGridView pager

#1 User is offline   delete10 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 09-May 12

Posted 09 July 2012 - 06:40 AM

arkadaşlar

CGridView 10 ar 10 ar sayfalama yapmakta, ben bunu 20 şer 20 şer sayfalatmak istiyorum nasıl yapabiliriz. teşşekürler
0

#2 User is offline   Yahya Sönmez 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 26-October 11
  • Location:Ankara

Posted 09 July 2012 - 08:18 AM

Merhaba.

dataProvider kullanıyorsan pagination özelliğini aşağıdaki şekilde özelleştirebilirsin.
..
'criteria'=>$criteria,
'pagination'=>array(
'pageSize'=>20
),
..


istersen CGridView içerisinde pagination türünü de belirleyebilirsin
..
'pager'=>array('class'=>'CLinkPager'),
// 'pager'=>array('class'=>'CListPager'),
..

iyi çalışmalar
~ α ѕєηισя ѕoғтwαяє dє√єʟσρєя ~
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