Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Admin Disable Pagination

Tags:

react-admin

Is there a way to disable pagination as a whole? I want all my records to show up in one long list and not broken up into pages. I am using ListGuesser right now, and i have tried with both List and ListGuesser but i am unable disable pagination. Actually react-admin expects X-Total-Count from the server side and i don't want to introduce pagination, but i am bound to pass this in header to make it work. So is there any way to disable pagination?

<Resource name="posts" list={ListGuesser} edit={EditGuesser}/>
like image 333
Faizan Tariq Avatar asked Oct 19 '25 10:10

Faizan Tariq


1 Answers

There is a Simple Way to Disable Pagination. Set pagination={false} in List. This works for me. And if you want to show more then 25 records on a page set perPage={100} or any no of value. I don't know how long list react-admin support but it should work for like 500-1000 records.

like image 122
CoderXT Avatar answered Oct 22 '25 02:10

CoderXT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!