I want to hide Search button from admin grid which is created using blocks and not ui component,
How should do I that?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityThe search button is added in a core file
at
vendor/magento/module-backend/Block/Widget/Grid.php
with function
public function getSearchButtonHtml()
{
return $this->getChildHtml('search_button');
}
So in my module's grid file I have added same function as follows to remove Search button
public function getSearchButtonHtml()
{
return '';
}
Thank You.