F
Filament12mo ago
Pooja

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:
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
Jump to solution
8 Replies
toeknee
toeknee12mo ago
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.
Pooja
PoojaOP12mo ago
So, How Can i remove all in per page list?
toeknee
toeknee12mo ago
In v2 I beleive you set the pagination options in the filament tables configuration
Vp
Vp12mo ago
publish table config file and, remove -1 inside pagination.records_per_page_select_options
Pooja
PoojaOP12mo ago
I want to remove All from particular one table.
toeknee
toeknee12mo ago
I told you how to above, and so did VP
Solution
toeknee
toeknee12mo ago
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
Want results from more Discord servers?
Add your server