Yii Framework Forum: kartik grid- remove complete header - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

kartik grid- remove complete header

#1 User is offline   robov 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 86
  • Joined: 15-December 15

Posted 27 April 2016 - 11:51 AM

On one view I use a small kartik-grid, but I want to completely remove the header and footer.
I have set the header, footer and toolbar to false, but it still shows an empty row above the column names and below the last row

[empty row]
column 1 | column2
data row 1
data row 2
[empty row]

    'dataProvider' => $dp_xx,
    'filterModel'=>$searchModel,     
    'toolbar'=> false,//[],    
    'columns' => $columns,
    'bordered'=>true,      //?
    'striped'=>false,  // alternating line colors
    'condensed'=>true, // condense the height of the lines
    'responsive'=>true,      // true, then uses http://getbootstrap.com/css/#tables-responsive
    'responsiveWrap' => true,   // group areas when stacked on smaller screen
    'hover'=>true,         // higlight on hover
    //'showPageSummary'=>$pageSummary,
    'panel'=>[
        'type'=>GridView::TYPE_DEFAULT ,
        'heading'=>false,
        'footer' => false,
    ],
    'persistResize'=>false,
    //'exportConfig'=>$exportConfig,
    'pjax'=>false, 

0

#2 User is offline   robov 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 86
  • Joined: 15-December 15

Posted 03 May 2016 - 04:24 AM

    
    'panel'=>[
        'type'=>GridView::TYPE_PRIMARY ,
        'heading'=>$heading,
        'footer' => false,
        'beforeOptions'=>['class'=>'grid_panel_remove'],
    ],

.grid_panel_remove
{
    height:0px;
}

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users