Can you force a repeating group to show all items at once?

I am loading a lot of data to display in repeating groups for a reporting page on our site.

When you scroll down, lets say to item 50 of 1000, it doesn’t show any more records but then it waits for say 2 seconds and loads about 25 more items.

Then you scroll again and it loads 25 more…

A user would have to repeat this countless times to get to the bottom of the list…

To get to the bottom of a large list this would take 5 minutes of waiting at this point.

Is there a way to disable or override this default behavior?

you could load all the data inside another repeating group, then point this repesating group that you are scrolling to that repeating group. hat should work. The reason RG behave that way is because bubble tries not to load more than is needed from the database per time, but if you “force everything” to load in repeating group A, that should work. You can also put conditional in RG B(the one you would be scrolling) to only show when the 2000th item(or a high range than corresponds to your situation)in repeating group A isnt empty…that way you are sure RG A has all the data it needs from the database!

1 Like

The data is coming from an API call, so all the data is in the browser already. It was an oversight not to clarify that detail in the first post.

Have you checked the ‘Show all items immediately’ box?

3 Likes

I had not seen that. It is pushing the page to work as I hoped. There is a huge delay now though, I am getting browser warnings asking if I want to wait for the page to load. There is nothing much on this page but a dump of API data. Surprised, I didn’t think a page would have this much trouble displaying text values from the API call. I may have to alter how I am displaying the records. Wondering if multiple repeating groups would help.

The only reason I think so is that the API data comes in a linear dump and I have to filter by two fields (year and position in the list) to display each item. Default display is 5 years / 5 columns of data, so there is a lot of logic that is firing to build what appears to be a table of information from that linear data set. I may ask the API developers to adjust the output as well, so that I don’t have to calculate so much. The other option is that each column represents a year, and I can call the API and limit it to 1 year, then call it 5 times and then output each result set in column… probably less work for the browser to do it that way. Oh this one is going to be fun : )

Thank you for the help!

This topic was automatically closed after 70 days. New replies are no longer allowed.