kartik-v / yii2-dynagrid

Turbo charge the Yii 2 GridView with personalized columns, page size, and themes.
http://demos.krajee.com/dynagrid
Other
74 stars 66 forks source link

EditableColumn does not work when two grid are displayed #215

Closed racielbd closed 5 years ago

racielbd commented 5 years ago

Hi... i'm having the same issue already use a dynamic options['id'] so it won't repeat but the editable only work at grid 1.. im using an expandable column for the grids

this is what I am trying to do

imagen

but in the second grid the editable does not come out... this is the code of that column

[
  'class' => 'kartik\grid\EditableColumn',
   'attribute' => 'confCode',
   'vAlign' => 'middle',
   'headerOptions' => ['class' => 'kv-sticky-column'],
   'contentOptions' => ['class' => 'kv-sticky-column'],
   'editableOptions' => function ($model, $key, $index, $widget) {
       return [
             'header' => 'Confirm Code',
             'inputType' => kartik\editable\Editable::INPUT_TEXT,
             'options' => [
                 'id' => 'column-' . $model->idItinerary . '-' . $model->idProduct . '-' . $model->idParticipant,
              ]
        ];
    },
],

Originally posted by @racielbd in https://github.com/kartik-v/yii2-dynagrid/issues/91#issuecomment-480339246

adamwinn commented 5 years ago

I have this exact same setup and EditableColumn works in the main grids and the expanded sub-grids. You probably need to set pjaxContainerId of the EditableColumn

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.