Posted 25 November 2020, 1:26 am EST
Dear Wijmo Team,I'm using Angular to render checkboxes in columns where datatype is boolean. Based on a few decisions the column is either editabled or readOnly.
I'm using selectionChangedHandler I'm calculating the readOnly state of the cell. So there are cases in which the cell is editabled even though the column is readOnly. I'm using format Handler to let the checkbox appear disabled.
private changeDisableStateFromCellWithCheckbox(e, disable: boolean) {
if (e.cell.children.length === 1 && e.cell.children[0].localName === "label") {
if(e.cell.children[0].children.length > 1 && e.cell.children[0].children[0] && e.cell.children[0].children[0]['type'] === 'checkbox') {
e.cell.children[0].children[0]['disabled'] = disable;
}
}
}
I have a rather strange issue: When clicking the checkbox, everything works. But when I click the cell in which the checkbox lies, but not the checkbox itself and then I click the checkbox again, the underlying data model isn't updated anymore. When I leave to cell and select another one, the data model is updated with the latest data of the checkbox.
Do I need to take special care of the cell in which the checkbox is lying?
Here is a small video of the behaviour. Notice the console output to see when I clicked into the cell but outside the checkbox.
https://we.tl/t-wo61QSRzms
Best regards
Moritz