FMX:XE5:iOS How to realize load-on-demand with listview?

FMX:XE5:iOS  How to realize load-on-demand with listview?
I mean scroll with the finger to the end of the listview and then load next portion of items...

Comments

  1. Add TListItemObject(override its paint method) to the last item of the listview. When the last item is visible, voila, the paint method is triggered and you know another items are required...

    ReplyDelete
  2. Found a way:
    After open the data set and filled the listview, set scrollPos to last item, get the scrollviewpos and so get the scrollPos to where it was, and now I got the maxscrollpos to compare with scrollviewpos. In OnScrollViewChange, compare if the current scrollviewpos is equals to maxscrollpos, get next records and recalculate maxscrollpos. Did works fine to me.

    ReplyDelete
  3. The listview stops showing header when FetchMode is fmManual...

    ReplyDelete

Post a Comment