How to disable sorting and filtering on a column in Magento grid
The easiest way is to do it in _prepareColumns() method.
$this->addColumn('item', array(
'header' => Mage::helper('module')->__('Object'),
'index' => 'item',
'filter' => false,
'sortable' => false
));
For Disable filter for all columns in custom grid, you can use the following methods.
Set the following methods $this->setFilterVisibility(false);
in your custom Grid.php(Block) file .
public function __construct() {
parent::__construct();
$this->setFilterVisibility(false);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With