Hi Ignacy,
Greetings from
Syncfusion Support.
Query: Disable all checkbox if one is selected
After reviewing your
query, we were able to understand that all the checkboxes selection must be
disabled if one checkbox is checked and enabled if the checkbox is unchecked.
Our suggest is to set a flag in rowDeselect event and in rowSelecting event disabling
the select by setting args.Cancel as true. To assist you, we have included a
code snippet and a sample.
rowDeselected(args) {
this.checked = false;
}
rowSelecting(args) {
if (this.checked === true) {
args.cancel = true;
}
this.checked = true;
}
|
Sample: https://stackblitz.com/edit/angular-kkqato-azpqb5?file=src%2Fapp.component.ts,src%2Fapp.component.html,src%2Fdata.ts,src%2Fapp.component.css
If we misunderstood
your requirement, please share the below details that will be helpful for us to
provide better solution.
- Share
your requirement step by step with detailed description.
- Share
your requirement scenario in pictorial representation or video
demonstration.
- Share
your sample grid rendering code.
Regards,
Dineshnarasimman