kartik-v / yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)
http://demos.krajee.com/export
Other
165 stars 126 forks source link

Export menu Bad Request (#400) #351

Closed Juslaines2018 closed 2 years ago

Juslaines2018 commented 3 years ago

Prerequisites

Steps to reproduce the issue

  1. layouts -> main add <?php $this->registerCsrfMetaTags() ?>

Environment

Browsers

Operating System

Libraries

Isolating the problem

$fullExportMenu = ExportMenu::widget([ 'dataProvider' => $dataProvider, 'columns' => $gridColumns, 'target' => ExportMenu::TARGET_SELF, 'pjaxContainerId' => 'kv-pjax-container', 'exportConfig' => [ ExportMenu::FORMAT_TEXT => false, ExportMenu::FORMAT_HTML => false, ExportMenu::FORMAT_CSV => false, ], 'contentBefore' => [ [ 'value' => 'Документ', 'styleOptions' => [ 'font' => [ 'name' => 'Arial', 'color' => [ 'rgb' => '808080' ] ], ] ], ], ]);

<?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => $gridColumns, 'class' => 'table table-striped table-bordered', 'responsive'=>true, / адаптивный стиль таблицы / 'responsiveWrap'=>true, / адаптивный стиль таблицы для маленького экрана / 'hover'=>true, / выделение строки при наведении / 'resizableColumns' => 'true', / разрешить ли изменение размера столбцов / 'persistResize' => 'true', / сохранять состояние столбца с измененным размером / 'showPageSummary' => true, 'bordered' => true, / таблица стиль с рамкой / 'condensed' => false, / сжатый стиль таблицы / 'showFooter'=>TRUE, 'pjax' => true, 'pjaxSettings' => ['options' => ['id' => 'kv-pjax-container']], 'toggleDataOptions' => ['minCount' => 10], 'exportConfig' => [ GridView::EXCEL => ['label' => 'Excel'], GridView::PDF => ['label' => 'PDF'], ], / first export / 'export' => [ 'itemsAfter'=> [ '

', '', '' ] ], ]); ?>

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/99281498-export-menu-bad-request-400?utm_campaign=plugin&utm_content=tracker%2F7668315&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7668315&utm_medium=issues&utm_source=github).
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.