0

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.

2
  • i am trying to list products in this tab...but it shows header Commented Jun 11, 2016 at 10:52
  • how i can exactly get this...????? Commented Jun 11, 2016 at 10:56

1 Answer 1

2

Add below code in your layout file

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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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