V
V
vladimir percov2017-09-29 13:51:02
Yii
vladimir percov, 2017-09-29 13:51:02

How to export two gridviews at once in yii2-export?

Good day!
I have Yii2, yii2-export. There are two tables in the gridview. The first of the tables exports fine in different formats, but I need to add a second gridview to the end of the file. Has anyone encountered this? How to solve it? Or do you still have to use PHPExcel itself without a wrapper?
-----------
Schematically:
{export_button}
{export_columns}
{gridview1}
{gridview2}
Clicking on {export_button} takes the settings from {export_columns} and exports everything to a single file that contains {gridview1}. The question is how to add {gridview2} to the end of the same file?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kudinov, 2017-09-29
@Frostealth

As far as I understand, this extension cannot work with two tables (GridView) at once.
If your tables are identical, then what prevents you from displaying one common one? If different, then the export will be different for each.
An example of a page with two tables (GridView) with export using this extension: yii2-export Multiple Export Menus

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question