First row of "kartik\grid\ExpandRowColumn" isn't expanded by default (GridView::ROW_EXPANDED)

Web Tips Q & ACategory: Krajee Yii2 ExtensionsFirst row of "kartik\grid\ExpandRowColumn" isn't expanded by default (GridView::ROW_EXPANDED)
qnl4O8xs asked 8 months ago

Hi,
I have a problem with the kartik-gridview plugin. I want to use “kartik\grid\ExpandRowColumn” and all rows should be expanded by default.

'value'=>function ($model, $key, $index) {
return GridView::ROW_EXPANDED;
},

It works, but not for the first row. I have to click it manually twice (collapse, expand), than it works properly. 

Login or register to contribute or comment.

Login   Register