protected function _initColumns()
 {
     parent::_initColumns();
     if ($this->_getParam('newsletterComponentId')) {
         $newsletterComponentId = $this->_getParam('newsletterComponentId');
     } else {
         $newsletterComponentId = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($this->_getParam('componentId'), array('ignoreVisible' => true, 'limit' => 1))->parent->dbId;
     }
     $model = Kwf_Model_Abstract::getInstance('Kwc_NewsletterCategory_CategoriesModel');
     $s = $model->select()->whereEquals('newsletter_component_id', $newsletterComponentId)->order('pos');
     $categories = $model->getRows($s);
     // filter by category
     $categorySelects = array(array('all', '- ' . trlKwf('All') . ' -'));
     foreach ($categories as $row) {
         $categorySelects[] = array($row->id, $row->category);
     }
     $this->_filters['category_id'] = array('type' => 'ComboBox', 'label' => trlKwf('Categorie') . ':', 'width' => 110, 'skipWhere' => true, 'data' => $categorySelects, 'default' => 'all');
     foreach ($categories as $c) {
         $this->_columns->add(new Kwf_Grid_Column_Checkbox('categorycheck' . $c->id, $c->category, 70))->setData(new Kwc_NewsletterCategory_Detail_RecipientCategoryData($c->id));
     }
 }
 protected function _initColumns()
 {
     parent::_initColumns();
     unset($this->_columns['edit']);
 }