I am using Kartik Gridview. Export is also working fine, but summary data is not getting exported, but showing fine in the view. As also I want to change the filename of the downloaded file.
I have tried this code, but nothing seems to be working
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => $gridColumns,
'showPageSummary' => true,
'exportConfig'=> [
GridView::EXCEL=>[
'filename' => Yii::t('kvgrid', 'Appointments'),
'showPageSummary' => true,
]
],
.....
That is I have added the export config in the gridview widget but it doesn’t seems to be working.
What I am doing wrong here? please suggest any changes.