Follow [color="#0000FF"]THIS README[/color], I wrote code but [color="#FF0000"]EditableColumn[/color] does not work. This is the details:
1.Hit the link in EditableColumn, it works, a dialog box appears.
2.I change the content in the input box, and then hit the button APPLY, it does not work. the dialog box still there.
3.Close the dialog box, the link in the EditableColumn was not changed.
Can you help me?
This is my code:(\frontend\views\score\index.php)
<?php
use yii\helpers\Html;
// use yii\grid\GridView;
use kartik\grid\GridView;
use kartik\editable\Editable;
use yii\i18n\PhpMessage;
$this->title = 'scores';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="score-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
$gridColumns = [
// ...
[
'class' => 'kartik\grid\EditableColumn',
'attribute' => 'XM',
// 'pageSummary' => 'Page Total',
'vAlign'=>'middle',
// 'headerOptions'=>['class'=>'kv-sticky-column'],
// 'contentOptions'=>['class'=>'kv-sticky-column'],
'editableOptions'=>['header'=>'Name', 'size'=>'md']
],
// ...
];
?>
<?php
echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => $gridColumns,
'containerOptions' => ['style'=>'overflow: auto'], // only set when $responsive = false
'pjax' => true,
'bordered' => true,
'striped' => false,
'condensed' => false,
'responsive' => true,
'hover' => true,
'floatHeader' => true,
'floatHeaderOptions' => ['scrollingTop' => $scrollingTop],
'showPageSummary' => true,
'panel' =>
[
'type' => GridView::TYPE_PRIMARY
],
]);
?>
</div>
This is the video of the error
http://www.yiiframework.com/forum/index.php?app=core&module=attach§ion=attach&attach_id=6025