It seems that this feature is reasonably popular so here’s my quick and easy (just 2 steps) solution that seems to work quite nicely…Step 1… Add this single line to the relevant Client Scripts > Table-Specific > List Page > Startup Script:
infiniteScroll();
Step 2… Add this code to Client Scripts > Global > Pages with header/footer > Global Code:
…and then regenerate at least the relevant list page and the userfn.js files.I suggest that you set the page size to 5 - that seems to be a good number of records to add each time, and the default delay of 1000ms also seems to work quite well, but feel free to experiment.Be aware that the top and/or bottom paging controls will be removed from view to avoid interfering with the infinite scroll functionality.As with my list refreshing code, the default is to abort if a preview panel or model dialog is open, but those checks can be overridden as required.Enjoy!
cursor progress icon stays on screen and the page progress icon are always displayed
as soon as page is loaded the 5 recs display, then 10, then 15, then 20 then 25… without even “scrolling down”, this should sit at the 5 until the cursor moves to the bottom of the page, testing on a contacts form which has 2000 records
can you add a floating “arrow” to go back out 5-10 rows/page up ?
If we have 11 or 12 records in the current table, the first 5 records and the second 5 records are successfully displayed in the List page after scrolling down to the bottom of page. Unfortunately, the last 1 or 2 records will not displayed.
I’m not quite sure how that could occur… if you have 11 or 12 records then there would be 3 pages, so “if (page < pages)” would still be true.You can try moving “$(‘#autoscroll’).attr(‘data-page’, String(page + 1));” into the “if (status == ‘success’) {” block and see if that helps.
Wow! it is a very nice option. I love ithere when I scroll down a long record and try to move to the Top it takes a long time.I hope it will be nice to have a small floating button “TOP”
so that we can move directly to “TOP” easily.
It is working perfect on Normal List Page.But When I try to use in custom templates List Page all the data are hide and only the table border are showing.I have created a simple table format and “table.ew-table > tbody tr” is in the table.My custom table is as follows.
No error message in F12.my page is a master/detail page .records from master and detail are visible for a second and gets hidden.only the table header and the add button is visible
changing the line
$(‘’).insertAfter(‘table.ew-table’);
to
$(‘’).insertAfter(‘table.ew-table:last’);makes it work in both the normal page and master/detail page