Hi,
I have trouble copying the value displayed is a cell using a custom renderer.
This cell is used to display the result of a calculation based on the values of other cells in the table.
I want the user to be able to copy this displayed value and paste it in another cell.
However, it is pasting an empty string.
As far as I understand, it is because I don’t update the grid’s data with the calculated value.
I tried to call the method setDataAtCell in the code of my custom renderer, but it is causing a severe decrease of performance.
td.innerHTML = calculatedValue; // to display the result
hotInstance.setDataAtCell(row, column, calculatedValue);
I also tried to look into the beforeCopy hook, but the data passed to this hook is empty.
So my question is, if my reasoning is correct, is there a way to copy the displayed value instead of the cell’s data ?