Virtual Array
The VirtualArray is an advanced array-like class that helps to load items on demand.
Through property loadSize and the itemLoadingEvent, the virtual array is used to load items only when needed.
Basics
VirtualArray Module Import
Using the VirtualArray requires the related module.
Note: Virtual array will divide total number of items to pages using
loadSizeproperty value. When you request an item at specific index the array will raiseitemsLoadingevent withItemsLoadingargument index set to the first index of the requested page and count set to number of items in this page.Inportant: If you have already loaded items in the requested page the array will raise multiple times
itemsLoadingevent to request all ranges of still not loaded items in this page.
Creating New VirtualArray
Handling Array Changes
Handling change event when you load items using load() method.