V2 pagination Error
In the filament table, I used the filament filter and pagination. I selected "ALL" from the per-page list and clicked Reset Filter. They make site freezes and give maximum execution time errors.
Solution:Jump to solution
You can see the config file you are publishing here:
https://github.com/filamentphp/filament/blob/2.x/packages/tables/config/tables.php
And you need to remove the -1 option.... as Vp pointed out...
GitHub
filament/packages/tables/config/tables.php at 2.x · filamentphp/fil...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
8 Replies
You shouldn't use ALL if you have a lot of records. this is will documented and explained. You need to have a small list no more than 100 records. IF you need more you need to add filters and anymore than 100 is poor UX.
So, How Can i remove all in per page list?
In v2 I beleive you set the pagination options in the filament tables configuration
publish table config file and, remove
-1
inside pagination.records_per_page_select_options
I want to remove All from particular one table.
I told you how to above, and so did VP
Solution
You can see the config file you are publishing here:
https://github.com/filamentphp/filament/blob/2.x/packages/tables/config/tables.php
And you need to remove the -1 option.... as Vp pointed out
GitHub
filament/packages/tables/config/tables.php at 2.x · filamentphp/fil...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament