php - Export to Excel only selected rows in magento panel admin -


i have question. how export selected lines in grid csv or excel file?

public function exportcsvaction() {     $filename = 'summary_employe_export.csv';     $content = $this->getlayout()->createblock('monogo_harvest/adminhtml_summaryemployee_edit_dayharvest')->getcsv();     $this->_preparedownloadresponse($filename, $content); }  public function exportexcelaction() {     $filename = 'summary_employe_export.xls';     $content = $this->getlayout()->createblock('monogo_harvest/adminhtml_summaryemployee_edit_dayharvest')->getexcelfile();     $this->_preparedownloadresponse($filename, $content); }  //grid $this->addexporttype('*/*/exportcsv',         mage::helper('monogo_workmanagement')->__('csv'));     $this->addexporttype('*/*/exportexcel',         mage::helper('monogo_workmanagement')->__('excel')); 

enter image description here


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -