I have created two tabs on my own module.

when i try to add content it shows with header, i want to remove this header.

hope anyone suggest some ideas

here i have attached screenshot.

enter image description here

in my Tabs.php i have this function

  protected function _beforeToHtml() {

    $this->addTab('update_bulkpriceupdate', array(
        'label'     => Mage::helper('bulkpriceupdate')->__('Bulk Price Update'),
        'title'     => Mage::helper('bulkpriceupdate')->__('Bulk Price Update'),
        'content'   => $this->getLayout()->createBlock('bulkpriceupdate/adminhtml_form')->toHtml(),
        'active'    => true

    $this->addTab('select_bulkupdateprice', array(
        'label'     => Mage::helper('bulkpriceupdate')->__('Select Products to Update Price'),
        'title'     => Mage::helper('bulkpriceupdate')->__('Select Products to Update Price'),
        //'content'   => $this->getLayout()->createBlock('bulkpriceupdate/adminhtml_select_grid')->toHtml(),
        'url'       => $this->getUrl('bulkpriceupdate/adminhtml_select/index', array('_current' => true)),
        'class'     => 'ajax'

    return parent::_beforeToHtml();

Updated Question : i am trying to create a tab with grid. when click this tab it continues loading with ajax loader an also displaying header like attached screenshot.

anyone already fixed the issue like this.,please suggest me why this header displaying.

  • i am trying to list products in this tab...but it shows header – Priya Ponnusamy Jun 11 '16 at 10:52
  • how i can exactly get this...????? – Priya Ponnusamy Jun 11 '16 at 10:56

Add below code in your layout file

<reference name="root">
    <remove name="header"/>

After this save your changes. clear cache and check this.

  • i added this in my layout file,But it didnt work – Priya Ponnusamy Jun 11 '16 at 12:33
  • @PriyaPonnusamy have you flush your cache? – Butterfly Jun 16 '16 at 8:13
  • @invissible yes i did .. – Priya Ponnusamy Jun 16 '16 at 8:40
  • can you please suggest that how to display form in one tab and grid in another tab – Priya Ponnusamy Jun 16 '16 at 8:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.