zii.widgets.CListView

How to get rid or reposition the Summary Text completely? I don’t want that to be seen at all.

instead it should be on the top or somewhere else… because it takes a entire space as seen in the picture below




 $this->widget('zii.widgets.CListView', 

                array(

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

                      'ajaxUpdate' => true,

                      'enablePagination'=>true,

                      'summaryText'=>

                    

                      'itemView'=>'_list',   // refers to the partial view named '_post'

                      'sortableAttributes'=>array(

                                                  'Price',

                                                  'Year',

                                                  'Lenght'

                                                  ),

                      

                      )


                    );




I would like to have something like picture in right side. Left side is the current situation

6185

Screen Shot 2014-12-18 at 11.00.54 PM.png

you can edit the template attribute to your taste. For example:


<?php $this->widget('zii.widgets.CListView', array(

	'dataProvider'=>$dataProvider,

	'itemView'=>'_view',

        'template'=>'<div style="width:100%;border:1px solid black;float:left">{pager}</div>{items}<div style="width:100%;border:1px solid black;float:left">{pager}</div>',


)); ?>



But it still takes up some space on the right side as you can see in the illustration below …6186

Screen Shot 2014-12-19 at 10.16.07 AM.png

you can add htmlOptions to your widget:


<?php $this->widget('zii.widgets.CListView', array(

        'dataProvider'=>$dataProvider,

        'itemView'=>'_view',

        'template'=>'<div style="width:100%;border:1px solid black;float:left">{pager}</div>{items}<div style="width:100%;border:1px solid black;float:left">{pager}</div>',

'htmlOptions' => array('style' => 'width:100%')


)); ?>