how to hide Add New and Reset Filter button in admin grid magento

By

October 23, 2012MagentoNo comments

In Magento admin panel whenever we create our custom module with admin grid, it inherits the grid layouts from the core module classes. However we can customize the look and feel according to our needs, say

For eg:

We may need to Show only reports based on some information from backend. In this case we dont need the Add New Button and Reset Filter Buttons. We just need the export functionality.

To Achieve the desired grid structure magento provides few methods in Mage_Adminhtml_Block_Widget_Grid_Container class and Mage_Adminhtml_Block_Widget_Grid class

  1. To Hide Remove Button we can use
  2. To Hide Reset Filter Button use

Sample Code Snippet is show below from Custom Module

Leave a Reply