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

Don`t send POST data form #310

Closed andrey-sw closed 4 years ago

andrey-sw commented 4 years ago

Hi. In my case, the export does not work.

yii\widgets\Pjax::begin(['id' => 'report-st-master-pjax', 'linkSelector' => 'a:not(.target-blank)'])
echo    render('_form_interval',[
            'model' => $model,
        ]);
                $dataProvider = new ArrayDataProvider([
                        'allModels' => $data,
                        'pagination' => false,
                ]);
                $fullExportMenu = ExportMenu::widget([
                    'dataProvider' => $dataProvider,
                    'columns' => $grid_columns,
                    'target' => ExportMenu::TARGET_SELF,
                    'pjaxContainerId' => 'report-st-master-pjax',
                    'exportContainer' => [
                        'class' => 'btn-group mr-2'
                    ],
                ]);                
                echo GridView::widget([
                    'dataProvider' => $dataProvider,
                    'resizableColumns'=>false,
                    'columns' => $grid_columns,
                    'panel'=>[
                        'type'=>'primary',
                        'heading'=> $heading,
                   ],
                    'toolbar' => [
                        '{export}',
                        $fullExportMenu,
                    ],
                ]);
            ?>

the problem is that when exporting don`t send POST data form and result for export empty. This leads to a simple page reload.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/86185595-don-t-send-post-data-form?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 4 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.

stale[bot] commented 4 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.