Reputation: 138
How to add a filter form as like report->sales->orders to my custom module. The filtered result should be shown in grid table.I have made the data to be displayed in the grid.
Upvotes: 1
Views: 1652
Reputation: 1869
In Grid.php
, where you are creating columns of grid, you need to add 'filter'=>true
. Like below:
$this->addColumn('COLUMN_NAME', array(
'header' => Mage::helper('MODULE_NAME')->__('COLUMN_HEADER_TEXT'),
'index' => 'COLUMN_NAME',
'sortable' => true, // make sortable column
'filter' => true // make filter column
));
Hope will help!
Upvotes: 1