Posted 18 November 2020, 9:33 pm EST
Dear Wijmo Team,
I came up with an issue regarding pasting values into cells of readOnly columns.
This is my setting:
- In my grid there is a mix of readOnly and editable columns
- When adding a new row, the readOnly columns become editable (using the selectionChanging Event)
- After saving that row, all those columns become readOnly again
This setting is working fine when adding values into a new row except pasting:
- Editing a single cell of a readOnly column in the new row by typing works fine
- Pasting a value into a single cell of a readOnly column in the new row also works fine
The problem occurs when I copy multiple values (let’s say all cells of an existing row) into a new row. All cells of readOnly columns (that are made editable using the selectionChanging Event) in the new row stay empty. For all the other cells in that row it’s working
It seems that the pastingCell handler isn’t triggered in that case for those cells.
flexdata.pastingCell.addHandler((s: wjcGrid.FlexGrid, e: wjcGrid.CellRangeEventArgs) => {
console.log("e: ", e);
});
How can I fix this?
Best regards
Moritz