In magento when we create grid, magento automatically create the “Add New” button. But now we are thinking how we will delete this same as Magento 1.
Don’t Worry. Write the below code in your block file
1 2 3 4 5 6 7 |
protected function _construct() { parent::_construct(); $this->removeButton('add'); // Add this code to remove the button } |
Now check at admin side 🙂