Pagination: update total to the data length
Ensure that OnDemandList aways removes an even number of rows