YII2 export menu on kartik gridview not showing -


i have installed kartik gridview , documentation , demo, copied of codes , got one..

<?= gridview::widget([         'dataprovider' => $dataprovider,         'filtermodel' => $searchmodel,         'hover'=>true,         'condensed'=>true,         'floatheader'=>true,         'bordered'=>true,         'pjax' => true,         'toolbar'=>[                     '{export}',                     '{toggledata}',                     ],         'columns' => [             ['class' => 'yii\grid\serialcolumn'],             [                 'attribute'=>'province',                 'label'=>'province',                 'value'=>'citycode.provcode.prov_name',             ],.... 

the page displays gridview export button missing. still need download export plugins? or code lacks of important configurations??

try hope you, copy , paste it, replace fields alone fields thats it.

use kartik\export\exportmenu;  <?php $gridcolumns = [     ['class' => 'yii\grid\serialcolumn'],         'companyname',         'companyaddress:ntext',         'hrname',         'email:email',         'mobile',         'typeofcompany',         'companytype',         'relationoption',         'relation',     ['class' => 'yii\grid\actioncolumn'],     ]; ?>  <?= exportmenu::widget([         'dataprovider' => $dataprovider,         'columns' => $gridcolumns,         'columnselectoroptions'=>[             'label' => 'columns',             'class' => 'btn btn-danger'         ],         'fontawesome' => true,         'dropdownoptions' => [             'label' => 'export all',             'class' => 'btn btn-success'         ]     ]); ?>  <?= gridview::widget([     'dataprovider' => $dataprovider,     'filtermodel' => $searchmodel,     'columns' => $gridcolumns, ]); ?> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -