Hi guys,
following GridView works pretty well by setting ‘showPageSummary’ => false. If I’ll change it to ‘showPageSummary’ => true, I will get error like this:
Unknown Method – yii\base\UnknownMethodException
Calling unknown method: yii\grid\CheckboxColumn::renderPageSummaryCell()
Any ideas,how to fix this? Here is my GridView:
Pjax::begin();
?>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => $gridColumn,
'floatHeader' => false,
'floatHeaderOptions' => ['scrollingTop' => '50'],
'toolbar' => [
[
'content' =>
Html::a('<i class="glyphicon glyphicon-repeat"></i>', ['country/index'], [
'class' => 'btn btn-default',
'title' => Yii::t('app', 'Reset Grid')
]),
],
'{export}',
'{toggleData}'
],
'headerRowOptions' => ['class' => 'kartik-sheet-style'],
'filterRowOptions' => ['class' => 'kartik-sheet-style'],
'export' => [
'fontAwesome' => true
],
'bordered' => true,
'striped' => true,
'condensed' => true,
'responsive' => true,
'hover' => true,
'showPageSummary' => true,
'panel' => [
'type' => GridView::TYPE_SUCCESS,
'heading' => '<h3 class="panel-title"><i class="glyphicon glyphicon-globe"></i>' . $this->title . '</h3>',
],
'persistResize' => true,
'toggleDataOptions' => ['minCount' => 10],
'exportConfig' => true,
]);
Pjax::end();
?>