/** * @inheritdoc */ protected function renderDataCellContent($model, $key, $index) { if ($this->gridType == 'datatable-select') { if (!$this->multiple) { return Html::radio(rtrim($this->name, '[]'), false, ['value' => $key]); } else { return Html::checkBox($this->name, false, ['value' => $key]); } } else { return parent::renderDataCellContent($model, $key, $index); } }
/** * Renders the data cell content */ public function renderDataCellContent($model, $key, $index) { $this->initPjax(); return parent::renderDataCellContent($model, $key, $index); }