Git Product home page Git Product logo

Comments (9)

NickIliev avatar NickIliev commented on May 22, 2024 1

Hey @JuanDelgadillo

In case you do not have initial items loaded you won't need loadMoreItem event. Instead just initialize your initial items collection.

from nativescript.

tylerdoll avatar tylerdoll commented on May 22, 2024 1

Did anyone come up with a viable solution for this? I am experiencing this issue too when I dynamically load in items. It loads <=10 items on the first go, then for what ever reason it loads more even though I did not scroll and am not anywhere near the bottom of the ListView.

I'm taking a stab in the dark here but maybe it's an issue with the rendering of the list? Meaning if it renders each item one by one (which I don't know if it does), I guess at one point it would think it's near the bottom when the first one or two items are loaded?

from nativescript.

alexziskind1 avatar alexziskind1 commented on May 22, 2024 1

I confirmed that this is still an issue. If you have a very large array that you're loading from a service using paging (adding 10 items at a time and adding to the existing list on the client side), loadMoreItems is called continuously.

from nativescript.

enchev avatar enchev commented on May 22, 2024

Generally loadMoreItems will be called when you scroll ListView to the bottom and when you do not have items you do not have scroll as well.

from nativescript.

enchev avatar enchev commented on May 22, 2024

From @qpautrat on April 21, 2015 7:3

Hi @enchev,

I was not specific enough my bad. This happen when i do nothing, no scroll.

from nativescript.

Epotignano avatar Epotignano commented on May 22, 2024

+1 for this problem

from nativescript.

JuanDelgadillo avatar JuanDelgadillo commented on May 22, 2024

+1 Any solution for this problem?

from nativescript.

mzaka avatar mzaka commented on May 22, 2024

+1,

LoadMoreItems runs automatically whenever items are initiated. Which should not be the behaviour.

from nativescript.

lock avatar lock commented on May 22, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from nativescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.