I have a virtual OLV that handles pages of sorted objects received from web service (service does the sorting). User can also insert an object, and my VirtualListDataSource handles that when insert index is known. But how can I deduce the insert index of a sorted list if I don't have all items in the list? I would like to have insert functionality that preserves the ordering and also does the minimum of web calls.
Maybe I could directly manipulate my VirtualListDataSource, instead of doing the insert via VOLV, but how do I tell the VOLV that an object is inserted? Is direct manipulation of VirtualListDataSource the way here?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a virtual OLV that handles pages of sorted objects received from web service (service does the sorting). User can also insert an object, and my VirtualListDataSource handles that when insert index is known. But how can I deduce the insert index of a sorted list if I don't have all items in the list? I would like to have insert functionality that preserves the ordering and also does the minimum of web calls.
Maybe I could directly manipulate my VirtualListDataSource, instead of doing the insert via VOLV, but how do I tell the VOLV that an object is inserted? Is direct manipulation of VirtualListDataSource the way here?