Handsontable Render old value

Tags: #<Tag:0x00007efc605d6f48>

Hello, I have a question, how can I read the old values in Render Method in Handsontable.
by this method I can only read the changed value (new value) but I want to compare the old value with the new value
Thanks

afterValuesRenderer(instance, td: HTMLTableCellElement, row, col, prop, value, cellProperties) {
Handsontable.renderers.NumericRenderer.apply(this, arguments);
return td;
}

Hi @mayarhamdash5

Do you mean that you would like to get a source value of a cell or the value within the data? If you have an example of an input and expected output value that would help.

Hallo, i need to read source value.
I tried (getSourceDataAtCell) Method but I only get the changed value.
I need the source value when i change the cell value.

Handsontable changes the data via reference. If you would like to get the value as it was when loaded to Handsontable you would need to make a deep clone of it. Here https://jsfiddle.net/AMBudnik/pyv0c1u2/ is an example with the deep clone within the afterChange hook.