Custom Module with Custom Database Table

Last modified by srenon on Sat, September 1, 2012 11:22
Show Page|Old Revisions  

This shows you the differences between the selected revision and the current version of the page.

5_-_modules_and_development:0_-_module_development_in_magento:custom_module_with_custom_database_table 2012/06/18 06:20 5_-_modules_and_development:0_-_module_development_in_magento:custom_module_with_custom_database_table 2012/09/01 11:22 current
Line 519: Line 519:
        $this->setDefaultDir('ASC');         $this->setDefaultDir('ASC');
        $this->setSaveParametersInSession(true);         $this->setSaveParametersInSession(true);
 +        $this->setUseAjax(true);
    }     }
Line 589: Line 590:
    {     {
        return $this->getUrl('*/*/edit', array('id' => $row->getId()));         return $this->getUrl('*/*/edit', array('id' => $row->getId()));
 +    }
 +
 +    public function getGridUrl()
 +    {
 +      return $this->getUrl('*/*/grid', array('_current'=>true));
    }     }
Line 814: Line 820:
        $this->loadLayout();         $this->loadLayout();
        $this->getResponse()->setBody(         $this->getResponse()->setBody(
-              $this->getLayout()->createBlock('importedit/adminhtml_<module>_grid')->toHtml()+              $this->getLayout()->createBlock('<module>/adminhtml_<module>_grid')->toHtml()
        );         );
    }     }



 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs