Answer the question
In order to leave comments, you need to log in
How to make dropdown-input instead of text in yii\grid\SerialColumn Yii2?
Hello. There was a problem, the fact is that I want the yii\grid\SerialColumn to have not an input with the text type, but a dropdown, so that only specific values can be selected. Those. the cell itself is a status cell, and manually entering the status name is very inconvenient, so it's better to provide a dropdownlist.
How can this be implemented?
Visual example:
With input(as is):
With select(as needed):
Answer the question
In order to leave comments, you need to log in
['attribute'=>'someAttribute','filter'=>[1,2,4,5,6,'вася','Зеленый']]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question