yii2kartik-v

yii2 action colum hidden still visible


I want to hide a column in my gridview using kartik gridview. But when i do something like that :

$gridColumns = [
[
    'class' => 'kartik\grid\DataColumn',
    'attribute'=>'name', 
    'hidden' => 'true',
],

My column is still visible .


Solution

  • Use visible instead:

    `visible` => false