Question

Je veux juste avoir la colonne de la grille, mais pas visible.

Est-il possible? tout paramètre je passe à addColumn ()

Était-ce utile?

La solution

colonne Vous pouvez ressembler à ceci:

$this->addColumn('column_id_here', array(
    'header' => Mage::helper('helper_name_here')->__('Column header here'),
    'index' => 'column_index_here',
    'column_css_class'=>'no-display',//this sets a css class to the column row item
    'header_css_class'=>'no-display',//this sets a css class to the column header
));

En gros, vous pouvez utiliser column_css_class et header_css_class ajouter des classes CSS à la colonne, puis travailler votre magie dans le fichier CSS. Magento classe thème par défaut admin no-display a 'display: none' sur elle

.
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top