Page 2 of 2

Infinite Scroll for Grid

Posted: Fri Oct 19, 2018 9:24 am
by Makoto

Hi Serhii,

yes, 12 new items are loaded properly. But, the 12 original items are replaced by them. The prepend feature doesn't work and I want to fix this problem.

Thanks


Infinite Scroll for Grid

Posted: Tue Oct 23, 2018 4:04 pm
by Serhii Kulibaba

Sorry, I can't reproduce it. Did you change the List page?


Infinite Scroll for Grid

Posted: Wed Oct 24, 2018 5:32 am
by Makoto

Hi Serhii,

you can reproduce the issue now.

Regards.


Infinite Scroll for Grid

Posted: Wed Oct 24, 2018 2:54 pm
by Serhii Kulibaba

Please replace:preself.dogsListItems = Apperyio("List_mobilegrid_94_wrapper").find("[name=mobilegrid_94]");/pre

to:pre var items = $("[name=mobilegrid_94]:not([data-appery-tpl])");
self.dogsListItems = items.length = 12 ? items : [];/pre
To keep previous items on the page


Infinite Scroll for Grid

Posted: Wed Oct 24, 2018 4:39 pm
by Makoto

Hello Serhii,

thank you for updating the information.

By following your code, I tried to implement it, but It doesn't seem to work properly as infinite scroll.
When the dogsListInfinite executes for the first time, the order of images gets random and the layout gets broken. And when the dogsListInfinite executes for the second time, no images are loaded... Would you check the updated code?

Thanks.


Infinite Scroll for Grid

Posted: Fri Oct 26, 2018 3:07 pm
by Serhii Kulibaba

Please check it now. I've fixed it


Infinite Scroll for Grid

Posted: Fri Oct 26, 2018 4:13 pm
by Makoto

Hello Serhii,

thank you for your update. And I confirmed the infinite scroll works. However when the dogsListInfinite executes for the first time, the same 12 images are added to the bottom. When the dogsListInfinite executes for the seconds time, this problem doesn't occur. Would you check it please? Thank you.


Infinite Scroll for Grid

Posted: Mon Oct 29, 2018 9:19 am
by Serhii Kulibaba

Please move the execution of that service from the page show event
Image after changing "skip" value:
Image


Infinite Scroll for Grid

Posted: Mon Oct 29, 2018 12:37 pm
by Makoto

Hello Serhii,

I confirmed it works perfect. What a smooth move!! Thank you very much for your patient and polite support, Serhii. Great job!!

How would you rate the support you received?
Good, I'm very satisfied