Magento Certified Developer GuideCategory: 6. AdminhtmlWhat is the role of the grid container class and its template
Manish Prakash Staff asked 2 years ago

Grid Container class located Mage_Adminhtml_Block_Widget_Grid_Container is the container class which encloses the grid. This basically has the add new button, back button, title etc which form the container of a grid.

Container automatically includes are grid using

protected function _prepareLayout()
        $this->setChild( 'grid',
            $this->getLayout()->createBlock( $this->_blockGroup.'/' . $this->_controller . '_grid',
            $this->_controller . '.grid')->setSaveParametersInSession(true) );
        return parent::_prepareLayout();