How can I disable checkall?
Hi Jan,
Greetings from Syncfusion support,
Based on your query wants to disable and hide the header checkbox. To achieve this, you can use the queryCellInfo event and apply the class "e-checkbox-disabled" to the cell containing the checkbox. Additionally, you can add some custom CSS to style the disabled checkbox appropriately. Please refer the below code snippet and sample for more information,
|
[app.component.ts]
queryCellInfo(args) { if (args.cell.column.type == 'checkbox') { args.node.classList.add('e-checkbox-disabled'); } }
|
|
[app.component.css]
.e-checkbox-disabled { background-color: #ddd; pointer-events: none; }
.e-grid .e-gridheader tr th:first-child .e-frame{ border-color: #ddd; pointer-events: none; } |
Sample- https://stackblitz.com/edit/angular-dwmzas-lfbsek?file=src%2Fapp.component.html
If you require further assistance, please do not hesitate to contact us. We are always here to help you.
Regards,
Vikram S