hi guys,
GridView-Widget of Kartik throws out following error:
SyntaxError: JSON.parse: unexpected character at line 1 column 9 of the JSON data
I absolutey have no idea,which JSON-File is wrong. I have several JSON files in my project.
Here is code:
.
.
.
[
'class' => 'kartik\grid\EditableColumn',
'attribute' => 'population',
'readonly' => function($model, $key, $index, $widget) {
return (!$model->status); // do not allow editing of inactive records
},
'editableOptions' => [
'header' => 'population',
'inputType' => \kartik\editable\Editable::INPUT_SPIN,
'options' => [
'pluginOptions' => ['min' => 100, 'max' => 1250000000]
]
],
'hAlign' => 'right',
'vAlign' => 'middle',
'width' => '7%',
'pageSummary' => true
],...