lazymofo / datagrid

PHP MySQL CRUD Datagrid
MIT License
141 stars 57 forks source link

Pagination ? #59

Closed DiGi36 closed 4 years ago

DiGi36 commented 4 years ago

I played around with and forked this project. Has anyone tried to add pagination to the project? When I connected my data ( ~2000 records) , it just scrolled forever.

lazymofo commented 4 years ago

Yes, there is already pagination. It should be on by default. Here's a live demo if you'd like to see. http://lmdatagrid.hopto.org/

I'm not sure what kind of bug you might be experiencing. Let me know if you find anything.

On Fri, Mar 20, 2020 at 12:28 AM Jim notifications@github.com wrote:

I played around with and forked this project. Has anyone tried to add pagination to the project? When I connected my data ( ~2000 records) , it just scrolled forever.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lazymofo/datagrid/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRM2WCHP2QL5MKHIHCCE4LRIMLKXANCNFSM4LQDSJNQ .

DiGi36 commented 4 years ago

I got it to work but how do you adjust it? Each page contains 200 records. Is there a way to make each page like 25 ?

lazymofo commented 4 years ago

There are a lot of properties you can set for settings. Check the code. $lm->grid_limit = 25; // 25 records a page

On Fri, Mar 20, 2020 at 11:40 AM Jim notifications@github.com wrote:

I got it to work but how do you adjust it? Each page contains 200 records. Is there a way to make each page like 25 ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lazymofo/datagrid/issues/59#issuecomment-601854675, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRM2WFC42H3S7SHODE62HLRIO2CFANCNFSM4LQDSJNQ .