kartik\grid\DataColumn::init PHP Method

init() public method

public init ( )
    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();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @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);
     }
 }
All Usage Examples Of kartik\grid\DataColumn::init