Hi,
I’m having problems with .setSourceDataAtCell() in this function:
$.ajax({
url: '/main/calculations/get-mode-level-octaves',
method: 'GET',
data: {
'mode_id': mode_id
},
success: function(data){
changes.push([row, 8, data.noiseLevel]);
changes.push([row, 9, data.f63]);
changes.push([row, 10, data.f125]);
changes.push([row, 11, data.f250]);
changes.push([row, 12, data.f500]);
changes.push([row, 13, data.f1000]);
changes.push([row, 14, data.f2000]);
changes.push([row, 15, data.f4000]);
changes.push([row, 16, data.f8000]);
hot.setSourceDataAtCell(changes);
resolve();
}
});
in some more or less specific cases, the changes will not appear visible in the table. The changes variable looks exactly as I would expect it to, but no values will appear in the table. In the same cases it will always work if I use .setDataAtCell() instead. changes is exactly the same in both cases. I’d prefer to not use .setDataAtCell() here because it triggers the afterChange hook and i dont want to trigger that here.
I realize that this is a very broad question and it probably depends on the rest of my code but are there any obvious reasons I could look into to explain and fix this behaviour?
Thanks!