I am trying to add an identifier to a column in my custom reports admin html grid view so I can manipulate the background colour with Javascript.
$this->addColumn('qty_ordered', array(
'header' => Mage::helper('report')->__('Qty'),
'sortable' => false,
'filter' => false,
'type' => 'number',
'index' => 'qty_ordered'
))
So I have tried to add the following options to no avail:
'identifier' => 'qtytest'
'id' => 'qtytest'
If someone knows an option that can do this it would be great.
Also I can’t seem to find a good resource to find $column options.
Thanks SO.
Mage_Adminhtml_Block_Widget_Grid::addColumndoes the following:That meas it creates the block with the class:
Mage_Adminhtml_Block_Widget_Grid_Columnso, evrika, this class contains all the documentation you need.Looking at
Mage_Adminhtml_Block_Widget_Grid_Column::getCssClassit seems you can specify a css class using:If you want your custom logic to display the data, you can always use a custom renderer for your column.