/** * @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); } }
/** * @inheritdoc * @throws InvalidConfigException */ public function init() { parent::init(); \kartik\base\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); $id = $this->grid->options['id']; $this->_view->registerJs("kvRefreshEC('{$id}','{$this->_css}');"); } }