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

Problem with multiple Select2 when i save filters #132

Closed stepancher closed 5 years ago

stepancher commented 8 years ago

Hello Kartik! Use your dynagrid and Select2 for multiple filtering table like this

    [
        'label' => 'Article',
        'attribute' => 'article_id',
        'value' => function ($model) {
            return $model->article ? $model->article->name : '';
        },
        'filterType' => GridView::FILTER_SELECT2,
        'filter' => [1 => 'Article 1', 2=> 'Article 2'],
        'filterWidgetOptions' => [
            'pluginOptions' => ['allowClear' => true, 'multiple' => true],
        ],
    ],

When i try to save my filter in dynagrid, it give me exception:

Array to string conversion
in line 159 kartik\dynagrid\models\DynaGridSettings

$out .= "<li>{$label} = {$value}</li>";

metola commented 7 years ago

Hi, stepancher, upload last versión and try it, I had the same issue, but now work well.

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.