Create tab and insert custom grid inside tabMagento 2: How to add grid to the tab in customer_index_editMagento 1.9 product edit page add tab and grid inside that tabAdd custom grid to custom tab in admin panelHow to change admin login template in Magento 1.5 or 1.6How to insert a Grid with some columns inside an admin form?Magento Grid Inside Catalog Product Edit TabOverriding Core File in Magentohow can i add shipping carrier column in admin pageMagento 1.9 product edit page add tab and grid inside that tabPagination count issue in custom varient collectionForm is not displayed on panel admin Magento 2Magento - Add customer attribute to order grid

Keeping the dodos out of the field

Does science define life as "beginning at conception"?

Real Analysis: Proof of the equivalent definitions of the derivative.

Which values for voltage divider

Can a bard grant bardic inspiration to an unconscious creature?

Way of refund if scammed?

size of pointers and architecture

Surface of the 3x3x3 cube as a graph

What technology is there beyond RAID for disk cluster in a server

Why does the -OH group in β-naphthol direct the incoming diazonium salt towards the ortho position?

What pc resources are used when bruteforcing?

Why is a weak base more able to deprotonate a strong acid than a weak acid?

Does attacking (or having a rider attack) cancel Charge/Pounce-like abilities?

Three knights or knaves, three different hair colors

Meaning of "half-crown enclosure"

Make the `diff` command look only for differences from a specified range of lines

If change in free energy (G) is positive, how do those reactions still occur?

How did the Allies achieve air superiority on Sicily?

Is it safe to redirect stdout and stderr to the same file without file descriptor copies?

Is it OK to look at the list of played moves during the game to determine the status of the 50 move rule?

why "American-born", not "America-born"?

Can someone get a spouse off a deed that never lived together and was incarcerated?

Which are the advantages/disadvantages of includestandalone?

How to become an Editorial board member?



Create tab and insert custom grid inside tab


Magento 2: How to add grid to the tab in customer_index_editMagento 1.9 product edit page add tab and grid inside that tabAdd custom grid to custom tab in admin panelHow to change admin login template in Magento 1.5 or 1.6How to insert a Grid with some columns inside an admin form?Magento Grid Inside Catalog Product Edit TabOverriding Core File in Magentohow can i add shipping carrier column in admin pageMagento 1.9 product edit page add tab and grid inside that tabPagination count issue in custom varient collectionForm is not displayed on panel admin Magento 2Magento - Add customer attribute to order grid






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








18















I created a grid by following this tutorial, I would like to create 4 grids more, the problem is I need to add all these grids to tab



so far I've created a controller to load the block like this:



class Lime_Customgrid_Adminhtml_CustomController extends Mage_Adminhtml_Controller_Action

public function indexAction()

$this->_title($this->__('Custom'))->_title($this->__('Custom Lime'));
$this->loadLayout();
$this->_setActiveMenu('sales/sales');
$this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));
$this->renderLayout();





Block > Adminhtml > Table > Custom > Custom.php:




<?php
class Lime_Customgrid_Block_Adminhtml_Table_Custom extends Mage_Adminhtml_Block_Widget_Tabs


public function __construct()

parent::__construct();
$this->setId('custom_tabs');
// $this->setDestElementId('edit_form');
$this->setTitle(Mage::helper('lime_customgrid')->__('Custom tabs'));



protected function _beforeToHtml()

$this->addTab(
'form_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Listing'),
'title' => Mage::helper('lime_customgrid')->__('Listing'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);

$this->addTab(
'form_attributes_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'title' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);
return parent::_beforeToHtml();







Block > Adminhtml > Table > Custom > Tab > Grid.php:




<?php

class Lime_Customgrid_Block_Adminhtml_Table_Custom_Tab_Grid extends Mage_Adminhtml_Block_Widget_Grid

public function __construct()

parent::__construct();
$this->setId('lime_order_grid');
$this->setDefaultSort('increment_id');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);


protected function _prepareCollection()

$collection = Mage::getResourceModel('sales/order_collection')
->join(array('a' => 'sales/order_address'), 'main_table.entity_id = a.parent_id AND a.address_type != 'billing'', array(
'city' => 'city',
'country_id' => 'country_id'
))
->join(array('c' => 'customer/customer_group'), 'main_table.customer_group_id = c.customer_group_id', array(
'customer_group_code' => 'customer_group_code'
))
->addExpressionFieldToSelect(
'fullname',
'CONCAT(customer_firstname, ' ', customer_lastname)',
array('customer_firstname' => 'main_table.customer_firstname', 'customer_lastname' => 'main_table.customer_lastname'))
->addExpressionFieldToSelect(
'products',
'(SELECT GROUP_CONCAT(' ', x.name)
FROM sales_flat_order_item x
WHERE entity_id = x.order_id
AND x.product_type != 'configurable')',
array('entity_id' => 'main_table.entity_id')
)
;

$this->setCollection($collection);
parent::_prepareCollection();
return $this;


protected function _prepareColumns()

$helper = Mage::helper('lime_customgrid');
$currency = (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);

$this->addColumn('increment_id', array(
'header' => $helper->__('Order #'),
'index' => 'increment_id'
));

$this->addColumn('purchased_on', array(
'header' => $helper->__('Purchased On'),
'type' => 'datetime',
'index' => 'created_at'
));

$this->addColumn('products', array(
'header' => $helper->__('Products Purchased'),
'index' => 'products',
'filter_index' => '(SELECT GROUP_CONCAT(' ', x.name) FROM sales_flat_order_item x WHERE main_table.entity_id = x.order_id AND x.product_type != 'configurable')'
));

$this->addColumn('fullname', array(
'header' => $helper->__('Name'),
'index' => 'fullname',
'filter_index' => 'CONCAT(customer_firstname, ' ', customer_lastname)'
));

$this->addColumn('city', array(
'header' => $helper->__('City'),
'index' => 'city'
));

$this->addColumn('country', array(
'header' => $helper->__('Country'),
'index' => 'country_id',
'renderer' => 'adminhtml/widget_grid_column_renderer_country'
));

$this->addColumn('customer_group', array(
'header' => $helper->__('Customer Group'),
'index' => 'customer_group_code'
));

$this->addColumn('grand_total', array(
'header' => $helper->__('Grand Total'),
'index' => 'grand_total',
'type' => 'currency',
'currency_code' => $currency
));

$this->addColumn('shipping_method', array(
'header' => $helper->__('Shipping Method'),
'index' => 'shipping_description'
));

$this->addColumn('order_status', array(
'header' => $helper->__('Status'),
'index' => 'status',
'type' => 'options',
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
));

$this->addExportType('*/*/exportLimeCsv', $helper->__('CSV'));
$this->addExportType('*/*/exportLimeExcel', $helper->__('Excel XML'));

return parent::_prepareColumns();


public function getGridUrl()

return $this->getUrl('*/*/grid', array('_current'=>true));




the result is so mess up, even when I click to load next pagination, it redirects me to admin dashboard:



enter image description here










share|improve this question
























  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:09











  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:30











  • hope this will help you guys magento.stackexchange.com/questions/82159/…

    – Pradeep Kumar
    Oct 13 '17 at 9:25

















18















I created a grid by following this tutorial, I would like to create 4 grids more, the problem is I need to add all these grids to tab



so far I've created a controller to load the block like this:



class Lime_Customgrid_Adminhtml_CustomController extends Mage_Adminhtml_Controller_Action

public function indexAction()

$this->_title($this->__('Custom'))->_title($this->__('Custom Lime'));
$this->loadLayout();
$this->_setActiveMenu('sales/sales');
$this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));
$this->renderLayout();





Block > Adminhtml > Table > Custom > Custom.php:




<?php
class Lime_Customgrid_Block_Adminhtml_Table_Custom extends Mage_Adminhtml_Block_Widget_Tabs


public function __construct()

parent::__construct();
$this->setId('custom_tabs');
// $this->setDestElementId('edit_form');
$this->setTitle(Mage::helper('lime_customgrid')->__('Custom tabs'));



protected function _beforeToHtml()

$this->addTab(
'form_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Listing'),
'title' => Mage::helper('lime_customgrid')->__('Listing'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);

$this->addTab(
'form_attributes_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'title' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);
return parent::_beforeToHtml();







Block > Adminhtml > Table > Custom > Tab > Grid.php:




<?php

class Lime_Customgrid_Block_Adminhtml_Table_Custom_Tab_Grid extends Mage_Adminhtml_Block_Widget_Grid

public function __construct()

parent::__construct();
$this->setId('lime_order_grid');
$this->setDefaultSort('increment_id');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);


protected function _prepareCollection()

$collection = Mage::getResourceModel('sales/order_collection')
->join(array('a' => 'sales/order_address'), 'main_table.entity_id = a.parent_id AND a.address_type != 'billing'', array(
'city' => 'city',
'country_id' => 'country_id'
))
->join(array('c' => 'customer/customer_group'), 'main_table.customer_group_id = c.customer_group_id', array(
'customer_group_code' => 'customer_group_code'
))
->addExpressionFieldToSelect(
'fullname',
'CONCAT(customer_firstname, ' ', customer_lastname)',
array('customer_firstname' => 'main_table.customer_firstname', 'customer_lastname' => 'main_table.customer_lastname'))
->addExpressionFieldToSelect(
'products',
'(SELECT GROUP_CONCAT(' ', x.name)
FROM sales_flat_order_item x
WHERE entity_id = x.order_id
AND x.product_type != 'configurable')',
array('entity_id' => 'main_table.entity_id')
)
;

$this->setCollection($collection);
parent::_prepareCollection();
return $this;


protected function _prepareColumns()

$helper = Mage::helper('lime_customgrid');
$currency = (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);

$this->addColumn('increment_id', array(
'header' => $helper->__('Order #'),
'index' => 'increment_id'
));

$this->addColumn('purchased_on', array(
'header' => $helper->__('Purchased On'),
'type' => 'datetime',
'index' => 'created_at'
));

$this->addColumn('products', array(
'header' => $helper->__('Products Purchased'),
'index' => 'products',
'filter_index' => '(SELECT GROUP_CONCAT(' ', x.name) FROM sales_flat_order_item x WHERE main_table.entity_id = x.order_id AND x.product_type != 'configurable')'
));

$this->addColumn('fullname', array(
'header' => $helper->__('Name'),
'index' => 'fullname',
'filter_index' => 'CONCAT(customer_firstname, ' ', customer_lastname)'
));

$this->addColumn('city', array(
'header' => $helper->__('City'),
'index' => 'city'
));

$this->addColumn('country', array(
'header' => $helper->__('Country'),
'index' => 'country_id',
'renderer' => 'adminhtml/widget_grid_column_renderer_country'
));

$this->addColumn('customer_group', array(
'header' => $helper->__('Customer Group'),
'index' => 'customer_group_code'
));

$this->addColumn('grand_total', array(
'header' => $helper->__('Grand Total'),
'index' => 'grand_total',
'type' => 'currency',
'currency_code' => $currency
));

$this->addColumn('shipping_method', array(
'header' => $helper->__('Shipping Method'),
'index' => 'shipping_description'
));

$this->addColumn('order_status', array(
'header' => $helper->__('Status'),
'index' => 'status',
'type' => 'options',
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
));

$this->addExportType('*/*/exportLimeCsv', $helper->__('CSV'));
$this->addExportType('*/*/exportLimeExcel', $helper->__('Excel XML'));

return parent::_prepareColumns();


public function getGridUrl()

return $this->getUrl('*/*/grid', array('_current'=>true));




the result is so mess up, even when I click to load next pagination, it redirects me to admin dashboard:



enter image description here










share|improve this question
























  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:09











  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:30











  • hope this will help you guys magento.stackexchange.com/questions/82159/…

    – Pradeep Kumar
    Oct 13 '17 at 9:25













18












18








18


3






I created a grid by following this tutorial, I would like to create 4 grids more, the problem is I need to add all these grids to tab



so far I've created a controller to load the block like this:



class Lime_Customgrid_Adminhtml_CustomController extends Mage_Adminhtml_Controller_Action

public function indexAction()

$this->_title($this->__('Custom'))->_title($this->__('Custom Lime'));
$this->loadLayout();
$this->_setActiveMenu('sales/sales');
$this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));
$this->renderLayout();





Block > Adminhtml > Table > Custom > Custom.php:




<?php
class Lime_Customgrid_Block_Adminhtml_Table_Custom extends Mage_Adminhtml_Block_Widget_Tabs


public function __construct()

parent::__construct();
$this->setId('custom_tabs');
// $this->setDestElementId('edit_form');
$this->setTitle(Mage::helper('lime_customgrid')->__('Custom tabs'));



protected function _beforeToHtml()

$this->addTab(
'form_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Listing'),
'title' => Mage::helper('lime_customgrid')->__('Listing'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);

$this->addTab(
'form_attributes_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'title' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);
return parent::_beforeToHtml();







Block > Adminhtml > Table > Custom > Tab > Grid.php:




<?php

class Lime_Customgrid_Block_Adminhtml_Table_Custom_Tab_Grid extends Mage_Adminhtml_Block_Widget_Grid

public function __construct()

parent::__construct();
$this->setId('lime_order_grid');
$this->setDefaultSort('increment_id');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);


protected function _prepareCollection()

$collection = Mage::getResourceModel('sales/order_collection')
->join(array('a' => 'sales/order_address'), 'main_table.entity_id = a.parent_id AND a.address_type != 'billing'', array(
'city' => 'city',
'country_id' => 'country_id'
))
->join(array('c' => 'customer/customer_group'), 'main_table.customer_group_id = c.customer_group_id', array(
'customer_group_code' => 'customer_group_code'
))
->addExpressionFieldToSelect(
'fullname',
'CONCAT(customer_firstname, ' ', customer_lastname)',
array('customer_firstname' => 'main_table.customer_firstname', 'customer_lastname' => 'main_table.customer_lastname'))
->addExpressionFieldToSelect(
'products',
'(SELECT GROUP_CONCAT(' ', x.name)
FROM sales_flat_order_item x
WHERE entity_id = x.order_id
AND x.product_type != 'configurable')',
array('entity_id' => 'main_table.entity_id')
)
;

$this->setCollection($collection);
parent::_prepareCollection();
return $this;


protected function _prepareColumns()

$helper = Mage::helper('lime_customgrid');
$currency = (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);

$this->addColumn('increment_id', array(
'header' => $helper->__('Order #'),
'index' => 'increment_id'
));

$this->addColumn('purchased_on', array(
'header' => $helper->__('Purchased On'),
'type' => 'datetime',
'index' => 'created_at'
));

$this->addColumn('products', array(
'header' => $helper->__('Products Purchased'),
'index' => 'products',
'filter_index' => '(SELECT GROUP_CONCAT(' ', x.name) FROM sales_flat_order_item x WHERE main_table.entity_id = x.order_id AND x.product_type != 'configurable')'
));

$this->addColumn('fullname', array(
'header' => $helper->__('Name'),
'index' => 'fullname',
'filter_index' => 'CONCAT(customer_firstname, ' ', customer_lastname)'
));

$this->addColumn('city', array(
'header' => $helper->__('City'),
'index' => 'city'
));

$this->addColumn('country', array(
'header' => $helper->__('Country'),
'index' => 'country_id',
'renderer' => 'adminhtml/widget_grid_column_renderer_country'
));

$this->addColumn('customer_group', array(
'header' => $helper->__('Customer Group'),
'index' => 'customer_group_code'
));

$this->addColumn('grand_total', array(
'header' => $helper->__('Grand Total'),
'index' => 'grand_total',
'type' => 'currency',
'currency_code' => $currency
));

$this->addColumn('shipping_method', array(
'header' => $helper->__('Shipping Method'),
'index' => 'shipping_description'
));

$this->addColumn('order_status', array(
'header' => $helper->__('Status'),
'index' => 'status',
'type' => 'options',
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
));

$this->addExportType('*/*/exportLimeCsv', $helper->__('CSV'));
$this->addExportType('*/*/exportLimeExcel', $helper->__('Excel XML'));

return parent::_prepareColumns();


public function getGridUrl()

return $this->getUrl('*/*/grid', array('_current'=>true));




the result is so mess up, even when I click to load next pagination, it redirects me to admin dashboard:



enter image description here










share|improve this question
















I created a grid by following this tutorial, I would like to create 4 grids more, the problem is I need to add all these grids to tab



so far I've created a controller to load the block like this:



class Lime_Customgrid_Adminhtml_CustomController extends Mage_Adminhtml_Controller_Action

public function indexAction()

$this->_title($this->__('Custom'))->_title($this->__('Custom Lime'));
$this->loadLayout();
$this->_setActiveMenu('sales/sales');
$this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));
$this->renderLayout();





Block > Adminhtml > Table > Custom > Custom.php:




<?php
class Lime_Customgrid_Block_Adminhtml_Table_Custom extends Mage_Adminhtml_Block_Widget_Tabs


public function __construct()

parent::__construct();
$this->setId('custom_tabs');
// $this->setDestElementId('edit_form');
$this->setTitle(Mage::helper('lime_customgrid')->__('Custom tabs'));



protected function _beforeToHtml()

$this->addTab(
'form_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Listing'),
'title' => Mage::helper('lime_customgrid')->__('Listing'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);

$this->addTab(
'form_attributes_listing',
array(
'label' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'title' => Mage::helper('lime_customgrid')->__('Set Attributes'),
'content' => $this->getLayout()->createBlock(
'lime_customgrid/adminhtml_table_custom_tab_grid'
)
->toHtml(),
)
);
return parent::_beforeToHtml();







Block > Adminhtml > Table > Custom > Tab > Grid.php:




<?php

class Lime_Customgrid_Block_Adminhtml_Table_Custom_Tab_Grid extends Mage_Adminhtml_Block_Widget_Grid

public function __construct()

parent::__construct();
$this->setId('lime_order_grid');
$this->setDefaultSort('increment_id');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);


protected function _prepareCollection()

$collection = Mage::getResourceModel('sales/order_collection')
->join(array('a' => 'sales/order_address'), 'main_table.entity_id = a.parent_id AND a.address_type != 'billing'', array(
'city' => 'city',
'country_id' => 'country_id'
))
->join(array('c' => 'customer/customer_group'), 'main_table.customer_group_id = c.customer_group_id', array(
'customer_group_code' => 'customer_group_code'
))
->addExpressionFieldToSelect(
'fullname',
'CONCAT(customer_firstname, ' ', customer_lastname)',
array('customer_firstname' => 'main_table.customer_firstname', 'customer_lastname' => 'main_table.customer_lastname'))
->addExpressionFieldToSelect(
'products',
'(SELECT GROUP_CONCAT(' ', x.name)
FROM sales_flat_order_item x
WHERE entity_id = x.order_id
AND x.product_type != 'configurable')',
array('entity_id' => 'main_table.entity_id')
)
;

$this->setCollection($collection);
parent::_prepareCollection();
return $this;


protected function _prepareColumns()

$helper = Mage::helper('lime_customgrid');
$currency = (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);

$this->addColumn('increment_id', array(
'header' => $helper->__('Order #'),
'index' => 'increment_id'
));

$this->addColumn('purchased_on', array(
'header' => $helper->__('Purchased On'),
'type' => 'datetime',
'index' => 'created_at'
));

$this->addColumn('products', array(
'header' => $helper->__('Products Purchased'),
'index' => 'products',
'filter_index' => '(SELECT GROUP_CONCAT(' ', x.name) FROM sales_flat_order_item x WHERE main_table.entity_id = x.order_id AND x.product_type != 'configurable')'
));

$this->addColumn('fullname', array(
'header' => $helper->__('Name'),
'index' => 'fullname',
'filter_index' => 'CONCAT(customer_firstname, ' ', customer_lastname)'
));

$this->addColumn('city', array(
'header' => $helper->__('City'),
'index' => 'city'
));

$this->addColumn('country', array(
'header' => $helper->__('Country'),
'index' => 'country_id',
'renderer' => 'adminhtml/widget_grid_column_renderer_country'
));

$this->addColumn('customer_group', array(
'header' => $helper->__('Customer Group'),
'index' => 'customer_group_code'
));

$this->addColumn('grand_total', array(
'header' => $helper->__('Grand Total'),
'index' => 'grand_total',
'type' => 'currency',
'currency_code' => $currency
));

$this->addColumn('shipping_method', array(
'header' => $helper->__('Shipping Method'),
'index' => 'shipping_description'
));

$this->addColumn('order_status', array(
'header' => $helper->__('Status'),
'index' => 'status',
'type' => 'options',
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
));

$this->addExportType('*/*/exportLimeCsv', $helper->__('CSV'));
$this->addExportType('*/*/exportLimeExcel', $helper->__('Excel XML'));

return parent::_prepareColumns();


public function getGridUrl()

return $this->getUrl('*/*/grid', array('_current'=>true));




the result is so mess up, even when I click to load next pagination, it redirects me to admin dashboard:



enter image description here







magento-1.9 adminhtml grid tabs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 24 '17 at 6:11







Hunter

















asked Jun 16 '17 at 9:19









HunterHunter

799625




799625












  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:09











  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:30











  • hope this will help you guys magento.stackexchange.com/questions/82159/…

    – Pradeep Kumar
    Oct 13 '17 at 9:25

















  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:09











  • magento.stackexchange.com/questions/170233/…

    – Divyesh
    Sep 22 '17 at 13:30











  • hope this will help you guys magento.stackexchange.com/questions/82159/…

    – Pradeep Kumar
    Oct 13 '17 at 9:25
















magento.stackexchange.com/questions/170233/…

– Divyesh
Sep 22 '17 at 13:09





magento.stackexchange.com/questions/170233/…

– Divyesh
Sep 22 '17 at 13:09













magento.stackexchange.com/questions/170233/…

– Divyesh
Sep 22 '17 at 13:30





magento.stackexchange.com/questions/170233/…

– Divyesh
Sep 22 '17 at 13:30













hope this will help you guys magento.stackexchange.com/questions/82159/…

– Pradeep Kumar
Oct 13 '17 at 9:25





hope this will help you guys magento.stackexchange.com/questions/82159/…

– Pradeep Kumar
Oct 13 '17 at 9:25










1 Answer
1






active

oldest

votes


















0














Replace this code



$this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


with the following



$this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_edit'))
->_addLeft($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


=> create edit.php file



<?php

class Lime_Customgrid_Block_Adminhtml_Table_Edit extends Mage_Adminhtml_Block_Widget_Form_Container

/**
*
* @return void
*/
public function __construct()

$this->_blockGroup = 'lime_customgrid';
$this->_controller = 'adminhtml_custom';

parent::__construct();







share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f179385%2fcreate-tab-and-insert-custom-grid-inside-tab%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Replace this code



    $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


    with the following



    $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_edit'))
    ->_addLeft($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


    => create edit.php file



    <?php

    class Lime_Customgrid_Block_Adminhtml_Table_Edit extends Mage_Adminhtml_Block_Widget_Form_Container

    /**
    *
    * @return void
    */
    public function __construct()

    $this->_blockGroup = 'lime_customgrid';
    $this->_controller = 'adminhtml_custom';

    parent::__construct();







    share|improve this answer





























      0














      Replace this code



      $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


      with the following



      $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_edit'))
      ->_addLeft($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


      => create edit.php file



      <?php

      class Lime_Customgrid_Block_Adminhtml_Table_Edit extends Mage_Adminhtml_Block_Widget_Form_Container

      /**
      *
      * @return void
      */
      public function __construct()

      $this->_blockGroup = 'lime_customgrid';
      $this->_controller = 'adminhtml_custom';

      parent::__construct();







      share|improve this answer



























        0












        0








        0







        Replace this code



        $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


        with the following



        $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_edit'))
        ->_addLeft($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


        => create edit.php file



        <?php

        class Lime_Customgrid_Block_Adminhtml_Table_Edit extends Mage_Adminhtml_Block_Widget_Form_Container

        /**
        *
        * @return void
        */
        public function __construct()

        $this->_blockGroup = 'lime_customgrid';
        $this->_controller = 'adminhtml_custom';

        parent::__construct();







        share|improve this answer















        Replace this code



        $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


        with the following



        $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_edit'))
        ->_addLeft($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom'));


        => create edit.php file



        <?php

        class Lime_Customgrid_Block_Adminhtml_Table_Edit extends Mage_Adminhtml_Block_Widget_Form_Container

        /**
        *
        * @return void
        */
        public function __construct()

        $this->_blockGroup = 'lime_customgrid';
        $this->_controller = 'adminhtml_custom';

        parent::__construct();








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 2 '18 at 15:12









        SymDev

        1033




        1033










        answered Nov 22 '17 at 4:37









        mudit-cedcommercemudit-cedcommerce

        41215




        41215



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f179385%2fcreate-tab-and-insert-custom-grid-inside-tab%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

            Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

            Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림