In fact, you can set the AutoComplete widget as a filter. The following code works for me:
[
'attribute' => 'project_status',
'filter' => AutoComplete::widget([
'model' => $filterModel,
'attribute' => 'project_status',
'clientOptions' => [
'source' => ['USA', 'RUS'],
],
]),
'value' => 'projectstatus.name'
]
Although you may need to slightly modify it to search correctly when choosing a value.
source
share