I added a tab to customer edit in admin magento, it's a grid. I used
$this->setUseAjax(true);
but when i filter, it's just loading and not show results. I have getGridUrl() in Custom.php:
public function getGridUrl()
{
return $this->getUrl('*/*/grid', array('_current'=> true));
}
And i have controller with grid action:
public function gridAction()
{
$this->loadLayout();
$this->getResponse()->setBody(
$this->getLayout()->createBlock('mymodule/adminhtml_customer_edit_tab_custom')->toHtml()
);
}
but still not filter
Best Answer
Yeah, i found solution following by marius's hint. My controller
Mymodule/controllers/Adminhtml/TestController.php
My config.xml:
Change
To