You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a grid with an Expand Column Row column. This column includes a DetailView. When I clicked the update icon it switched to edit mode and when I clicked the view icon it went back to view mode.
It was working a while ago, but since I've updated the project this functionality has been lost and no buttons work.
Steps to reproduce the issue
File composer.json:
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "~2.0.6",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-bootstrap4": "2.0.10",
"yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0",
"yii2tech/spreadsheet": "^1.0",
"phpmailer/phpmailer": "^6.0",
"spipu/html2pdf": "^5.2",
"miloschuman/yii2-highcharts-widget": "v9.0",
"kartik-v/yii2-widget-datepicker": "v1.4.8",
"kartik-v/yii2-field-range": "v1.3.5",
"kartik-v/yii2-widget-depdrop": "v1.0.6",
"kartik-v/yii2-grid": "v3.5.0",
"kartik-v/yii2-widget-select2": "v2.2.3",
"kartik-v/yii2-detail-view": "v1.8.7"
},
File index.php (contains the grid)
'kartik\grid\SerialColumn', 'contentOptions'=>['class'=>'kartik-sheet-style'], 'width'=>'36px', 'pageSummary'=>'Total', 'pageSummaryOptions' => ['colspan' => 6], //'header'=>'', 'headerOptions'=>['class'=>'kartik-sheet-style'], ], [ 'class' => 'kartik\grid\ExpandRowColumn', 'width' => '50px', 'value' => function ($model, $key, $index, $column) { return GridView::ROW_COLLAPSED; }, // uncomment below and comment detail if you need to render via ajax //'detailUrl' => Url::to(['/sec-pa-plan/plan-details','APP_COMPONENTE' => $model->APP_COMPONENTE,'APP_GERENCIA' => $model->APP_GERENCIA, 'PA_ID_VUL' => $model->PA_ID_VUL]), 'detail' => function ($model, $key, $index, $column) { return Yii::$app->controller->renderPartial('plan-details', ['model' => $model]); }, 'headerOptions' => ['class' => 'kartik-sheet-style'], 'expandOneOnly' => true, ], ............................... 'list_planes']) ?>File plan-details.php (contains the detailview)
echo DetailView::widget([
'model'=>$model,
'attributes'=>$attributes,
'condensed'=>true,
'hover'=>true,
'mode'=>DetailView::MODE_VIEW,
'panel'=>[
'type'=>DetailView::TYPE_INFO,
],
'formOptions' => [
'action' => Url::toRoute(['sec-pa-plan/save-plan-details','APP_COMPONENTE'=>$model->APP_COMPONENTE,'APP_GERENCIA'=>$model->APP_GERENCIA,'PA_ID_VUL'=>$model->PA_ID_VUL]),
//'options' => ['data-pjax' => true],
'id' => 'plan-form-view',
'method' => 'post'
],
]);
Expected behavior and actual behavior
I have a grid with an Expand Column Row column. This column includes a DetailView. When I clicked the update icon it switched to edit mode and when I clicked the view icon it went back to view mode.
It was working a while ago, but since I've updated the project this functionality has been lost and no buttons work.
Environment
Dev
Browsers
It happens with all browsers.
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: