I used the Grid to create a report which shows at most 5 rows so I'd like to hide the Paging altogether. Does anyone know how to hide it?
Thank you for any help!
Tim
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 communityI used the Grid to create a report which shows at most 5 rows so I'd like to hide the Paging altogether. Does anyone know how to hide it?
Thank you for any help!
Tim
In your grid class add this in the constructor:
$this->setPagerVisibility(false);
For magento 2, try below in construct method.
protected function _construct()
{
parent::_construct();
$this->setId('postGrid');
$this->setDefaultSort('customer_prescription_id');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);
$this->setVarNameFilter('post_filter');
$this->setFilterVisibility(false); //Filter Visibility is disabled
$this->setDefaultLimit(100); //Default Pagination is set 100
$this->setPagerVisibility(false); //Pagination Visibility is disabled
}