The grid values don't update. Having played with it since they update if I click the header a bunch of times. Suspect there's a call I'm missing to tell the grid to update itself after I've called setItems()?
grid.onSort.subscribe(function(e, args) {
sortColumn = args.sortCol.field;
dataView.sort(dataSortFunction, args.sortAsc);
----
var balance = 0;
var items = dataView.getItems();
for(var i = 0 ; i < items.length ; i++ ) {
balance = balance + parseInt(items[i].t_amount, 10);
items[i].balance = balance;
}
dataView.setItems(items);
----
});