public function init()
{
$this->_view = $this->grid->getView();
if ($this->mergeHeader && !isset($this->vAlign)) {
$this->vAlign = GridView::ALIGN_MIDDLE;
}
if ($this->grid->bootstrap === false) {
Html::removeCssClass($this->filterInputOptions, 'form-control');
}
$this->parseFormat();
$this->parseVisibility();
$this->checkValidFilters();
parent::init();
$this->setPageRows();
$this->initGrouping();
}
/** * @inheritdoc * @throws InvalidConfigException */ public function init() { parent::init(); Config::checkDependency('editable\\Editable', 'yii2-editable', 'for GridView EditableColumn'); $this->_css = 'kv-edcol-' . hash('crc32', uniqid(rand(1, 100), true)); if ($this->refreshGrid) { EditableColumnAsset::register($this->_view); } }