Thanks for the example. I modified it a bit to mimic mine, by adding EditMode="Batch" and InsertItemDisplay="Bottom"
Run it again, click "Add new record" at least once (optionally adding data) and click your "Get last rows" button. You'll still get the last row prior to the newly added rows. How can I get the index of the bottom most row, regardless if it's been newly added or not?
get_dataItems().length - 1 does increase with each additional row, but it always points to the same row.