Page 1 of 1
Records Per Page Dropdown
Posted: 2025-04-16 20:52
by rpierce
Is there a way to hide/remove the "Records Per Page" dropdown menu in AppGini? I want to show more than 200 records per page. The issue is that if a user clicks on that dropdown then the Records Per Page setting in AppGini is overridden and you are limited to a max of 200 records per page. I'm using version 24.17 at the moment because newer versions have issues that I am unable to resolve.
Re: Records Per Page Dropdown
Posted: 2025-04-17 04:33
by jsetzer
I want to show more than 200 records per page
How to change the records-per-page dropdown entries
Code: Select all
<script>
// file: hooks/header-extras.php
AppGini.config.recordsPerPageOptions = [10, 25, 50, 100, 250, 1000];
</script>

- chrome_Kxuqo4Vraq.png (11.43 KiB) Viewed 6292 times
---
Is there a way to hide/remove the "Records Per Page" dropdown menu in AppGini
(1) How to visually hide records-per-page selector
Code: Select all
<script>
// file: hooks/header-extras.php
jQuery(() => { jQuery('#records-per-page-selector').closest(".form-inline").hide(); });
</script>
---
(2) How to overwrite the method which renders the records-per-page selector
Code: Select all
<script>
// file: hooks/header-extras.php
let blacklist = ['TABLENAME', 'TABLENAME2', '...']; // tablenames as array
if (blacklist.include(AppGini.currentTableName()))
AppGini.renderTVRecordsPerPageSelector = () => { };
</script>
Note: I haven't tested completely combinations of $options
, $_SESSION
-variables, $_POST
-arguments etc.. So, I'm not sure if this will work in your scenario.