Yii2 widgets into a Grid View Expanded row

Web Tips Q & ACategory: Krajee Yii2 ExtensionsYii2 widgets into a Grid View Expanded row
deuxni asked 1 year ago

Is it possible to use Yii2 widgets like DatePicker or Select2 into a grid view expanded row since all widgets have the same id for all rows.The result is that the first row is ok but the others do not work.

deuxni replied 1 year ago

Found the solution: specify ids for each widget with trailing $index obtained from detail closure:
‘options’ => [‘id’ => ” . $index ].
Nice result !
Great job Kartik.

1 Answers
Kartik Staff answered 1 year ago

 
Resolved as in your comment above.

Login or register to contribute or comment.

Login   Register