Пример #1
0
 /**
  * @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);
     }
 }
Пример #2
0
 /**
  * Renders the data cell content
  */
 public function renderDataCellContent($model, $key, $index)
 {
     $this->initPjax();
     return parent::renderDataCellContent($model, $key, $index);
 }