How to not load all database records in my TListbox in Firemonkey Delphi XE8

  

I have a multi device project in Delphi Xe8. I have a TListBox component that i load with database records.

The problem is that sometimes the list can be really big and so the loading will take long. So I want to load it partially and when I scroll down load new records. How do I do that?

Right now i load every record of my table using a TFDQuery.

Update:
After some timing I have realized that the problem doesn’t lay with loading all the records from the database, but rather with creating all the TListBoxItems in the TListBox. So I still want to do pretty much the same, but now load all the database records but not create TListBoxItems for all of them.

Comments are closed.