хочу использовать https://datatables.net/
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use kartik\widgets\Select2;
use yii\web\JsExpression;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;

/* @var $this yii\web\View */
/* @var $searchModel common\models\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Users');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-index">

    <div class="box box-primary">

        <div class="box-header">
            <?= Html::a(Yii::t('app', 'Create new'), ['create'], ['class' => 'btn btn-success']) ?>
        </div>

        <div class="box-body">

            <?= GridView::widget([
                'dataProvider' => $dataProvider,
                'filterModel' => $searchModel,
                'columns' => [
                    ['class' => 'yii\grid\SerialColumn'],

                    'id',
                    'username',
                    'email:email',
                    [
                        'attribute' => 'phone', // Добавляем атрибут телефона
                        'value' => 'phone', // Указываем значение телефона для отображения в таблице
                    ],
                    [
                        'attribute' => 'customer_id',
                        'value' => 'customer.name',
                        'filter' => Select2::widget([
                            'model' => $searchModel,
                            'attribute' => 'customer_id',
                            'initValueText' => ArrayHelper::getValue(\common\models\catalog\Customer::findOne($searchModel->customer_id), 'name'),
                            'options' => [
                                'prompt' => Yii::t('app', 'Select...'),
                            ],
                            'pluginOptions' => [
                                'allowClear' => true,
                                'minimumInputLength' => 3,
                                'ajax' => [
                                    'url' => Url::toRoute(['/catalog/customer/select2-data']),
                                    'dataType' => 'json',
                                    'data' => new JsExpression('function(params) { return {q:params.term}; }')
                                ],
                            ]
                        ]
                        ),
                    ],
                    [
                        'attribute' => 'role',
                        'filter' => Select2::widget([
                            'model' => $searchModel,
                            'attribute' => 'role',
                            'data' => [
                                $searchModel::ROLE_SUPERADMIN => $searchModel::ROLE_SUPERADMIN,
                                $searchModel::ROLE_CONTENTMANAGER => $searchModel::ROLE_CONTENTMANAGER,
                                $searchModel::ROLE_CUSTOMER => $searchModel::ROLE_CUSTOMER,
                            ],
                            'options' => [
                                'prompt' => Yii::t('app', 'Select...'),
                            ],
                            'pluginOptions' => [
                                'allowClear' => true
                            ]
                        ]),
                    ],
                    [
                        'attribute' => 'status',
                        'filter' => Select2::widget([
                            'model' => $searchModel,
                            'attribute' => 'status',
                            'data' => [
                                $searchModel::STATUS_ACTIVE => Yii::t('app', 'Active'),
                                $searchModel::STATUS_BLOCKED => Yii::t('app', 'Blocked'),
                            ],
                            'options' => [
                                'prompt' => Yii::t('app', 'Select...'),
                            ],
                            'pluginOptions' => [
                                'allowClear' => true
                            ]
                        ]),
                        'format' => 'raw',
                        'value' => function ($model) {
                            /* @var $model common\models\User */
                            switch ($model->status) {
                                case $model::STATUS_ACTIVE:
                                    return '<span class="fa fa-check" aria-hidden="true" style="color: green"></span> ' . Yii::t('app', 'Active'); //glyphicon glyphicon-ok
                                case $model::STATUS_BLOCKED:
                                    return '<span class="fa fa-times" aria-hidden="true" style="color: #ff0000"></span> ' . Yii::t('app', 'Blocked'); //glyphicon glyphicon-remove
                            }
                        }
                    ],
                    ['class' => 'yii\grid\ActionColumn', 'template' => '{update} {delete}'],
                ],
                'options' => [
                    'style' => 'zoom: 80%;' // Уменьшение таблицы и информации до 80%
                ]
            ]); ?>
        </div>
    </div>
</div>