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',
'dataProvider'=>$dataProvider,
'template'=>"{summary}{items}{pager}",
'enablePagination' => true,
'summaryText'=>'Displaying {start}-{end} of {count} results.',
'columns'=>array(
array('name'=>'valuta', 'header'=>'Valuta'),
array('name'=>'description', 'header'=>'Description'),
array('name'=>'amount', 'header'=>'Amount'),
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
'htmlOptions'=>array('style'=>'width: 50px'),
),
),
)); ?>