-
12-12-2019 - |
题
我使用该网格创建一个报告,该报告显示为大多数5行,以便完全隐藏分页。有谁知道如何隐藏它?
谢谢任何帮助!
tim
解决方案
在grid class中添加它在构造函数中:
$this->setPagerVisibility(false);
. 其他提示
对于magento 2,在构造方法中尝试下面。
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
}
.