I want to make a closed dropdownlist values in the Gridview widget of YII2 framework. the code i have now:
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [ //only fields name!
['class' => 'yii\grid\SerialColumn'],
'id',
'title',
'statusId',
'categoryId',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
and statudId should be one of 3 possible values. (1-open, 2-in progress, 3-closed)