Fyi, I did read from another similar post where I came to a good solution (Setting is system true will prevent it from getting exported).
However, my problem is I would like to have two type of csv export where the first type will export all columns. The second type will only export certain column. I cant set is_system
true as this will hide the columns from both types of export function. Is there any way to set condition in the controller where it can set is_system
true to the grid or any alternative way?
Beforehand, let me thank you in advance.
public function example()
{
$fileName = 'example.csv';
$content = $this->getLayout()->createBlock('example/example_grid')
->getCsv();
$this->_sendUploadResponse($fileName, $content);
}
//Grid
$this->addColumn('detail', array(
'header' => Mage::helper('example')->__('Detail'),
'align' => 'left',
'renderer' => 'example/example'
));