Yii-Bootstrap: Displaying More Than 10 Rows Per Page In Tbgridview

Hello community,

I’m using the yii-bootstrap extension and I’m more than happy!

However, my table with TbGridView shows only 10 rows per page, regardless if pagination is enabled or not. Can this behaviour be change to either some higher value or preferable a value which can be chosen by the user?

Here’s my code:

<?php $this->widget('bootstrap.widgets.TbGridView', array(

    'type'=>'striped condensed',



	'enablePagination' => true,

	'summaryText'=>'Displaying {start}-{end} of {count} results.',


        array('name'=>'valuta', 'header'=>'Valuta'),

        array('name'=>'description', 'header'=>'Description'),

        array('name'=>'amount', 'header'=>'Amount'),



            'htmlOptions'=>array('style'=>'width: 50px'),



)); ?>

How do you set pagination size? Please show your code.

This extension allows to choose pagination size by user:


I was not aware that pagination behaviour could be coded, thanks for pointing me to the right direction!

Changing the return statment of function ‘search’ of the corresponding controller to the following code solved my problem:

return new CActiveDataProvider($this, array(

	'pagination' => array(

	     'pageSize' => 25,




@all: Check this wiki entry for more information about pagination.