Posted 29 August 2018, 3:25 pm EST
Hi Sasmita,
To disable pasting in read-only cells all you have to do is handle the pastingCell event, in the event handler check if the cell being pasted is read-only and if it is read-only then cancel the event.
Please refer to the following code snippet:-
flexSheet.pastingCell.addHandler((s, e) => {
if( isReadOnlyCell( flexSheet, e.row, e.col ) ){
//cell is read-only, cancel the event
e.cancel = true;
}
});
You may also refer to the following sample for full implementation:-
https://stackblitz.com/edit/angular-ubmt8d?file=app%2Fapp.component.ts
~Sharad