Revision #209 was created by rackycz on Jul 3, 2020, 12:47:50 PM.
GridViev - Variable page size
Content
[...]
class InvoiceSearch extends Invoice
{
public $pageSize = null // add this row
// ...
// This method already exists:
public function rules()
{
return [ // ...
[...]
}
// This functionmethod already exists, so change it:
public function search($params)
{
// ..Remember to call load() first and then you can work with pageSize
$this->load($params);
// Add following rows:
if (!isset($this->pageSize)) {
// Here we make sure that the dropDownLst will have correct value preselected