Is there a way to create or add a scroll feature to a repeater? My repeater contains 20+ items which creates a bit of a cluster. Can I toss this in a box and add a scroll, or anything like that?
Hi David,
There is no scroll option on the repeater.
What you can do is change the number of items to display on the dataset which the repeater is connected to
and then create Pagination by adding buttons and connecting them to the Next Page/Previous Page actions of the Dataset
Hope this suits your needs.
Have fun!
Tom
Hmmm, normally this would work. However, I have to populate my repeater using code and not from a dataset on the page. Instead, I am querying a dataset and creating the repeater dataset myself, which I need to do for functional purposes.
Any way to have a similar effect with code then?
Hi David,
Did you ever find a solution to this problem? I am trying to create a private messenger between site members and it would benefit greatly from a scroll feature.
Thanks,
Eric
Hi Eric, I have another forum post on here where I built a member to member messenger. So if you need help there, it’s somewhere on he forum.
Regarding the scroll, I unfortunately did not figure this out. I am not sure there is a solution, but if you find it, please let me know.
Thanks!
Thanks David. I saw that forum post of yours. Nice job coding that! I will let you know if I find a solution.
-Eric
Hi,
Do you try ?
$w("#dataset").loadMore();
Unfortunately, loadmore() will not work for me. My repeater is not linked to a dataset. It is linked to a custom array I created using fields from multiple different databases I have set up.
Is there a solution to this problem yet? I have a repeater refering to texts of variable lengths. Sinc emy layout does not permit all these different lengths to be accomodated, I need a scroll bar for each text depending on the length of the text. Is it possible to achieve this through a code or are there any buttons i could link to show parts of these?
Scrolling fields/repeaters would be amazing to add support for.
Did anyone manage to find a way to do this with repeaters that use code for the data and not datasets?
II don’t have a solution, just an 80% workaround -
- Finish designing the repeater
- Put it inside an empty slideshow
- Duplicate the slides as many times as needed
- Throw in your content
- Then use either the slideshow buttons, either connect your own buttons outside the slideshow with the code:
$w("#buttonLeft").onClick((event) => {
$w("#slideshow").next();
})
$w("#buttonRight").onClick((event) => {
$w("#slideshow").previous();
})
Hope that helps.
I would actually love to see a repeater similar to the Slider Pro Gallery, just with containers instead of images, so you can just hover on the side buttons to scroll.
If anyone has an idea - please share.
Cheers
Old post from 2018 being closed.