View more context

 

Mo

Try changing to GridFieldPaginator::class?

👍 (1)
Hels

@Neil Creagh I can't remember the exact details but you can do this via yml file. If you search the slack archive website you should find the message where someone here told me how to do it!

Mo

I think if you did this via YML, it would be a global change?

Mo

In which case, looks like you can use GridFieldPaginator.default_items_per_page config variable

Mo

@Neil Creagh I just updated my answer with how to change this globally via YML

Neil Creagh

Great - thanks. Mo using ::class worked 👍


Show less replies
Mo

Weird question, is it possible to make the ORM return an empty DataList?

Mo

I want to always return a DataList for a custom report, but I only want it to show results if a filter has been selected

Mo

@kinglozzer You are obviously channeling directly into my brain, I just added $list = $list->filter("ID", 0); before seeing your reply!

Mo

Or does it not matter (I can't see that it would)?