OK. Let’s check some options here.
If you get the data from a database maybe it will be better to handle the SUM on the back-end (just store it as well). The case is when we use a renderer it doesn’t add a value to the cell. It only ‘makes it appear’. That’s why when you edit the cell the value of 7
is not there in the editor and it doesn’t load by calling getData
and getSourceData
.
You would need to use setDataAtCell
but in the renderer
it creates an infinite loop and setDataAtCell
calls renderer again.
The main issue is that you have to add this value on the table initialization (haven’t we?) but we are also blocked by the fact that the values are loaded on the initialization.
That is s tough case @filip I will check if there’s anything else that can be done.
Can you let me know when you need to call the getData
? Do you need to get the data after initialization or for some option/hook that is called while table is initialized but not yet loaded?