I would like to be able to load data into a DataGrid in Silverlight as it becomes available. Here is the scenario:
- My silverlight client fires a WCF call to the server.
- The server takes about 1 to 2 seconds to respond.
- The response is between 1 MB and 4 MB (quite large).
- This data is loaded into a DataGrid.
- Although the server responds quickly, the data is not seen by the user until all 1 MB to 4 MB has been downloaded.
What is the best (or most efficient) way to load this data into the DataGrid as it is being downloaded by the client? As opposed to waiting for the download to complete?
A way of handling this is implementing custom virtualization.
Retrieve the ids and load only the visible objects (and perhaps a few more to allow scrolling)
Retrieve more objects when needed for scrolling.