Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

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

$
0
0
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'),
        ),
    ),
)); ?>

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>