how can I hide the buttons "Reset Filter" and "Search" in a custom module grid ?
Thanks.
To only hide "Reset filter" and "Search" buttons, but keep the header filter fields, you could override Mage_Adminhtml_Block_Widget_Grid::getMainButtonsHtml()
with:
public function getMainButtonsHtml()
{
return '';
}
If you want to hide the whole filter stuff, "Reset filter", "Search" button and the header filter fields, you could use the setFilterVisibility()
method of Mage_Adminhtml_Block_Widget_Grid
:
$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