My goal is to store the database id in the cell meta data to be used when changes are made.
To start, I add the id in afterLoadData
afterLoadData: function(sourceData) {
for (var i = 0; i < sourceData.length; i++) {
this.setCellMeta(i, 0, ‘id’, sourceData[i].id);
console.log(this.getCellMeta(i, 0));
}
}
Checking the console, the custom id field is listed in the meta data
Later in the afterChange, calling getCellMeta does not have the id field that was previously set.
I found this example here: http://jsfiddle.net/handsoncode/uymcettp/
that is very similar to my need