protected function _initColumns()
 {
     $this->_columns->add(new Kwf_Grid_Column('pos'));
     $this->_columns->add(new Kwf_Grid_Column_Visible());
     for ($i = 1; $i <= $this->_getComponent()->chained->getComponent()->getColumnCount(); $i++) {
         $this->_columns->add(new Kwf_Grid_Column("column{$i}" . "data"))->setData(new Kwc_Basic_Table_Trl_ControllerIsTrlData("column{$i}"));
         $ed = new Kwf_Form_Field_TextField();
         $ed->setAllowTags(true);
         $this->_columns->add(new Kwf_Grid_Column("column{$i}", $this->_getColumnLetterByIndex($i - 1), 150))->setRenderer('tableTrl')->setEditor($ed);
     }
 }
 protected function _initColumns()
 {
     $component = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($this->_getParam('componentId'), array('ignoreVisible' => true, 'limit' => 1));
     $maxColumns = Kwc_Abstract::getSetting($component->componentClass, 'maxColumns');
     $sel = new Kwf_Form_Field_Select();
     $rowStyles = Kwc_Abstract::getSetting($this->_getParam('class'), 'rowStyles');
     $rowStylesSelect = array();
     foreach ($rowStyles as $k => $rowStyle) {
         $rowStylesSelect[$k] = $rowStyle['name'];
     }
     $sel->setValues($rowStylesSelect);
     $sel->setShowNoSelection(true);
     $this->_columns->add(new Kwf_Grid_Column_Visible());
     $this->_columns->add(new Kwf_Grid_Column('css_style', trlKwf('Style'), 100))->setEditor($sel);
     for ($i = 1; $i <= $maxColumns; $i++) {
         $ed = new Kwf_Form_Field_TextField();
         $ed->setAllowTags(true);
         $this->_columns->add(new Kwf_Grid_Column("column{$i}", $this->_getColumnLetterByIndex($i - 1), 150))->setEditor($ed);
     }
 }