Yii bootstrap "bootstrap.widgets.TbGridView" dont display pagination

I have installed yii bootstrap extension…

for grid view it dont display pagination…

which thing do i need to add

i wnat pagination similar to like in yii "zii.widgets.grid.CGridView"

it works for zii.widgets.grid.CGridView see code below ikn view file


$this->widget('zii.widgets.grid.CGridView', array(

	'id'=>'message-grid',

	'dataProvider'=>$model->search(),

	'filter'=>$model,

	'columns'=>array(

                array(

                    'name'=>'nom',

                    'header'=>'Catégorie',

                    'type'=>'raw',

                    'value'=>'$data->nom',

                    'htmlOptions'=>array('width'=>'100'),

                    ),

                array(

                    'name'=>'adresse',

                    'value'=>'$data->adresse',

                    'htmlOptions'=>array('width'=>'40'),

                ),

                array(

                    'name'=>'gps',

                    'header'=>'Message',

                    'type'=>'raw',

                    'value'=>'$data->gps',

                    ),

		

		array(

			'class'=>'CButtonColumn',

		),

	),

));

but not for " bootstrap TbGridView "see code below in view file




$this->widget(

	'bootstrap.widgets.TbGridView', 

	array(

    'type'=>'striped bordered condensed',

    'dataProvider'=>$model->search(),

	'filter' => $model,

    'template'=>"{items}",

    'columns'=>array(

		

		array('name'=>'nom', 'header'=>'Identifiant'),

		array('name'=>'pays_id', 'header'=>'Nom'),

		array('name'=>'adresse', 'header'=>'Prenom'),

		array('name'=>'gps', 'header'=>'Niveau Utilisateur'),

		array('name'=>'app_type', 'header'=>'App type','filter'=>array(1=>"For Ferry",2=>"For avion"),'value'=>'Config::model()->getAppTypeTextName($data[app_type])'),

		array(

			'class'=>'bootstrap.widgets.TbButtonColumn',

			'template'=>'{view}{update}{delete}',

			'buttons'=>array(	

				'update' => array(

				  'url'=>'Yii::app()->controller->createUrl("ports/update", array("id"=>$data[id]))',

				),

				'delete' => array(

				  'url'=>'Yii::app()->controller->createUrl("ports/delete", array("id"=>$data[id],"command"=>"delete"))',

				),

			),

		),	

    ),

));



plz if any one knows reply its urgent

ohh…i got it

need to add

‘dataProvider’=>$model->search(),

‘filter’=>$model,

‘template’=>"{items}\n{pager}",

Thanks buddy, you saved me !

Thank you!!! O0

How do you set the page size? The number of items to be shown in each page?

Thanks alot! you saved me!

Ha…ha…ha… Damn "\n{pager}"!

I thought SQLDataProvider can’t do paging at first. Fortunately I found this thread accidentally.