Posted 12 November 2019, 5:30 am EST
Really, using .Locked doesn’t work in my case, I will send the code if necessary, but just a question: I am cancelling the edition in EditStarting event, with code below. It works fine (i.e., it cancels edition for rows with isReadOnly = true. But that doesn’t work for checkboxes columns, is there a way to cancel click event or something like that to avoid changing the checkbox state?
_this.sheet.bind(GC.Spread.Sheets.Events.EditStarting, function (sender, args) {
let item = _this.sheet.getDataItem(args.row);
args.cancel = item.isReadOnly || _this.columnsInfo[args.col].name == “psStatus”;
});