I have a grid set up using xml load on demand set to background mode. The grid currently fetches 50 rows at a time. I'm trying to figure out how to detect on the client when the grid is done fetching all of the data from the server.
Thanks,
Eric
Hi Eric,
Listen for the AfterXmlHttpResponseProcessed client side event...something like the following:
function UltraWebGrid1_AfterXmlHttpResponseProcessed(gridName) {
// grid has finished loading the current set of data...
// be extra clever and display to the user how many rows have actually been loaded var grid = igtbl_getGridById(gridName); var total = grid.RowsServerLength; var loaded = grid.RowsRetrieved; if (loaded < total) { alert(loaded + ' of ' + total + ' rows loaded'); } else { alert('Grid has loaded all ' + total + ' rows'); } return;
}