kartik-v / yii2-dynagrid

Turbo charge the Yii 2 GridView with personalized columns, page size, and themes.
http://demos.krajee.com/dynagrid
Other
74 stars 66 forks source link

Image not export to excel #157

Closed GAMITG closed 5 years ago

GAMITG commented 7 years ago

When I go to export image column from grid view but image column not exported and it shows blank cell in excel sheet. image column has live server image url like https://www.exaple.com/uploads/image.png and as well as amazon image url.

     <?php
                $dynagrid = DynaGrid::begin([
                    'columns' => [
                        ['class' => 'yii\grid\SerialColumn'],
                        [
                            'attribute' => 'p_image',
                            'value' => function($model) {
                                return $model->p_image;
                            },
                            'format' => ['image',['width'=>'45','class'=>'img-circle']],
                            'filter' => false,
                        ],
                        'p_title',
                    ],
                    'theme' => 'panel-info',
                    'showPersonalize'=>true,
                    'allowThemeSetting' => false,
                    'allowFilterSetting' => false,
                    'allowSortSetting' => false,
                    'submitButtonOptions' => ['class' => 'btn btn-success'],
                    'gridOptions' => $setting,  <------ grid setting array
                    'options' => ['id' => 'dynagrid-product-data'] // a unique identifier is important
                ]);
                DynaGrid::end();
            ?>
stale[bot] commented 5 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.